Skip to content

Commit

Permalink
fix failling test due to 'epoch' being private
Browse files Browse the repository at this point in the history
  • Loading branch information
jordansissel committed Sep 25, 2012
1 parent 2a27467 commit b27efde
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/fpm/package/rpm.rb
Expand Up @@ -234,5 +234,6 @@ def digest_algorithm
end # def digest_algorithm end # def digest_algorithm


public(:input, :output, :converted_from, :architecture, :to_s, :iteration, public(:input, :output, :converted_from, :architecture, :to_s, :iteration,
:payload_compression, :digest_algorithm, :prefix, :build_sub_dir) :payload_compression, :digest_algorithm, :prefix, :build_sub_dir,
:epoch)
end # class FPM::Package::RPM end # class FPM::Package::RPM
4 changes: 2 additions & 2 deletions spec/fpm/package/rpm_spec.rb
Expand Up @@ -39,8 +39,8 @@
end end


describe "#epoch" do describe "#epoch" do
it "should default to nil" do it "should default to 1" do
insist { subject.epoch }.nil? insist { subject.epoch } == "1"
end end
end end


Expand Down

0 comments on commit b27efde

Please sign in to comment.