Commit 9dd598cb authored by Samuel E. Giddins's avatar Samuel E. Giddins

[SourcesManagerSpec] Make it clearer that #source_with_url returns something.

Thanks @mrackwitz!
parent 722ef22d
...@@ -151,9 +151,9 @@ module Pod ...@@ -151,9 +151,9 @@ module Pod
it 'runs `pod repo add` when there is no matching source' do it 'runs `pod repo add` when there is no matching source' do
Command::Repo::Add.any_instance.stubs(:run).once Command::Repo::Add.any_instance.stubs(:run).once
SourcesManager.stubs(:source_with_url).returns(nil).then.returns(true) SourcesManager.stubs(:source_with_url).returns(nil).then.returns('Source')
SourcesManager.find_or_create_source_with_url('https://banana.com/local/specs.git'). SourcesManager.find_or_create_source_with_url('https://banana.com/local/specs.git').
should == true should == 'Source'
end end
end end
end 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