Skip to content

Commit

Permalink
Merge pull request #118 from voxik/use-gem_path-to-create-test-gem
Browse files Browse the repository at this point in the history
Use `gem_path` helper to ensure testing gem is available.
  • Loading branch information
voxik authored Aug 5, 2022
2 parents 195a45f + 8752fe4 commit 91b38c8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/test_gem2rpm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,7 @@ def test_print_dependencies
rubygem(test_development) >= 1.0.0
END

Gem2Rpm.print_dependencies(
File.join(File.dirname(__FILE__), 'artifacts', 'testing_gem', 'testing_gem-1.0.0.gem'),
@out
)
Gem2Rpm.print_dependencies(gem_path, @out)

assert_equal dependencies, @out.string.lines.sort
end
Expand Down

0 comments on commit 91b38c8

Please sign in to comment.