Commit 54f4dbb1 authored by Boris Bügling's avatar Boris Bügling Committed by Kyle Fuller

Spec for resilience of SourcesManager against non-existing repos

directory.
parent b3354c62
......@@ -43,6 +43,13 @@ module Pod
#--------------------------------------#
it 'does not fail if the repos directory does not exist' do
config.stubs(:repos_dir).returns(Pathname.new('/foo/bar'))
SourcesManager.unstub(:all)
SourcesManager.aggregate.sources.should == []
SourcesManager.all.should == []
end
it 'returns all the sources' do
SourcesManager.unstub(:all)
SourcesManager.all.map(&:name).should == %w(master test_repo)
......
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