Commit fcf06acd authored by clarkda's avatar clarkda

[Analyzer] Only update git sourced spec repos

parent e5c13c9d
......@@ -83,12 +83,17 @@ module Pod
pod 'BananaLib', '1.0'
end
config.skip_repo_update = false
config.verbose = true
source = Source.new(non_git_repo)
SourcesManager.expects(:update).never
analyzer = Pod::Installer::Analyzer.new(config.sandbox, podfile, nil)
analyzer.stubs(:sources).returns([Source.new(non_git_repo)])
analyzer.stubs(:sources).returns([source])
analyzer.analyze
UI.output.should.match /Skipping `#{source.name}` update because the repository is not a git source repository./
FileUtils.rm_rf(non_git_repo)
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment