spec/jsus/pool_spec.rb in jsus-0.2.4 vs spec/jsus/pool_spec.rb in jsus-0.2.5
- old
+ new
@@ -78,13 +78,13 @@
describe "#lookup_direct_dependencies" do
before(:each) do
packages.each {|package| subject << package.source_files }
end
- it "should return a container with direct dependencies" do
- subject.lookup_direct_dependencies("Mash/Mash").should be_a(Jsus::Container)
+ it "should return an array with direct dependencies" do
+ subject.lookup_direct_dependencies("Mash/Mash").should be_an(Array)
subject.lookup_direct_dependencies("Mash/Mash").should == [sources[2]]
- subject.lookup_direct_dependencies(Jsus::Tag["Mash/Mash"]).should be_a(Jsus::Container)
+ subject.lookup_direct_dependencies(Jsus::Tag["Mash/Mash"]).should be_a(Array)
subject.lookup_direct_dependencies(Jsus::Tag["Mash/Mash"]).should == [sources[2]]
end
it "should return empty array if pool doesn't contain given source" do
subject.lookup_direct_dependencies("Lol/Wtf").should == []
\ No newline at end of file