Skip to content

Commit

Permalink
Add test coverage for jordansissel#585
Browse files Browse the repository at this point in the history
  • Loading branch information
jordansissel committed Dec 6, 2013
1 parent 601cfc6 commit ddd6598
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion spec/fpm/package_convert_spec.rb
Expand Up @@ -8,7 +8,10 @@

subject do
source = FPM::Package::Gem.new
source.attributes[:gem_package_name_prefix ] = 'rubygem19'
prefix = source.attributes[:gem_package_name_prefix ] = 'rubygem19'
name = source.name = "whatever"
version = source.version = "1.0"
source.provides << "#{prefix}-#{name} = #{version}"
source.convert(FPM::Package::RPM)
end

Expand All @@ -19,4 +22,8 @@
it "remembers attributes applied to source" do
insist { subject.attributes[:gem_package_name_prefix] } == gem_package_name_prefix
end

it "should list provides matching the gem_package_name_prefix (#585)" do
insist { subject.provides }.include?("rubygem19(whatever) = 1.0")
end
end

0 comments on commit ddd6598

Please sign in to comment.