Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix failling test due to 'epoch' being private

  • Loading branch information...
commit b27efde44b710413747499ac3158acd711698e6b 1 parent 2a27467
@jordansissel authored
Showing with 4 additions and 3 deletions.
  1. +2 −1  lib/fpm/package/rpm.rb
  2. +2 −2 spec/fpm/package/rpm_spec.rb
View
3  lib/fpm/package/rpm.rb
@@ -234,5 +234,6 @@ def digest_algorithm
end # def digest_algorithm
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
View
4 spec/fpm/package/rpm_spec.rb
@@ -39,8 +39,8 @@
end
describe "#epoch" do
- it "should default to nil" do
- insist { subject.epoch }.nil?
+ it "should default to 1" do
+ insist { subject.epoch } == "1"
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.