Commit 637f722c authored by Samuel Giddins's avatar Samuel Giddins

[SourcesManager] Fix spec for new Source::Manager interface

parent 1564c00f
......@@ -56,9 +56,8 @@ module Pod
it 'handles repositories without a remote url' do # for #2965
Command::Repo::Add.any_instance.stubs(:run).once
Source.any_instance.stubs(:url).returns(nil)
e = lambda { @sources_manager.find_or_create_source_with_url('url') }
e.should.not.raise
Source.any_instance.stubs(:url).returns(nil).then.returns('URL')
@sources_manager.find_or_create_source_with_url('URL').url.should == 'URL'
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