Skip to content

Commit

Permalink
Revert "DependencyResolver doesn't use Gem::Specification"
Browse files Browse the repository at this point in the history
This reverts commit 5450015.
  • Loading branch information
drbrain committed Apr 3, 2013
1 parent 5450015 commit 289500a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions lib/rubygems/test_case.rb
Expand Up @@ -971,9 +971,7 @@ def v string

class StaticSet
def initialize(specs)
@specs = specs.sort_by { |s| s.full_name }.map { |s|
Gem::DependencyResolver::InstalledSpecification.new self, s
}
@specs = specs.sort_by { |s| s.full_name }
end

def find_spec(dep)
Expand Down
4 changes: 2 additions & 2 deletions test/rubygems/test_gem_dependency_resolver.rb
Expand Up @@ -12,8 +12,8 @@ def set(*specs)
end

def assert_set(expected, actual)
exp = expected.map { |s| s.full_name}.sort
act = actual.map { |a| a.spec.full_name }.sort
exp = expected.sort_by { |s| s.full_name }
act = actual.map { |a| a.spec }.sort_by { |s| s.full_name }

assert_equal exp, act
end
Expand Down

0 comments on commit 289500a

Please sign in to comment.