Permalink
Browse files

tests pass again... I got sloppy.

  • Loading branch information...
1 parent c819875 commit f76ea811942f40170edb0b5b667bb47de466cc90 @brendanjerwin brendanjerwin committed Sep 21, 2010
Showing with 3 additions and 6 deletions.
  1. +3 −2 lib/nu/dependency_leveling/package_conflict_finder.rb
  2. +0 −4 specs/loader.rspec
@@ -35,8 +35,9 @@ def initialized_suggested_packages(proposed_package)
suggested_packages << {:name=>proposed_package.name, :version=> req(proposed_package.version)}
proposed_package.dependencies.each do |dep|
- suggested_packages.reject! {|i| i[:name] == dep.name}
- suggested_packages << {:name=>dep.name, :version=>dep.requirement}
+ unless suggested_packages.any?{|i| i[:name] == dep.name}
+ suggested_packages << {:name=>dep.name, :version=>dep.requirement}
+ end
end
return suggested_packages
end
View
@@ -12,10 +12,6 @@ describe Nu::Loader do
@loader.gemspec.name.should eql('rspec')
end
- it 'should know if a gem is available' do
- @loader.gem_available?.should eql(true)
- end
-
it 'should know the source dir' do
spec = Nu::GemTools.new.spec_for('rspec')
@loader.copy_source.should eql(File.join(spec.full_gem_path,'lib'))

0 comments on commit f76ea81

Please sign in to comment.