Skip to content

Commit

Permalink
Fix ruby 2.4.0 deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
antstorm committed Dec 28, 2016
1 parent e31a705 commit 22cf221
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/money_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def expectation.fractional
it "stores fractional as an integer regardless of what is passed into the constructor" do
m = Money.new(100)
expect(m.fractional).to eq 100
expect(m.fractional).to be_a(Fixnum)
expect(m.fractional).to be_a(Integer)
end

context "loading a serialized Money via YAML" do
Expand Down Expand Up @@ -351,7 +351,7 @@ def expectation.fractional

it "returns a Fixnum when infinite_precision is not set" do
money = Money.new(100, "USD")
expect(money.round_to_nearest_cash_value).to be_a Fixnum
expect(money.round_to_nearest_cash_value).to be_a Integer
end

it "returns a BigDecimal when infinite_precision is set", :infinite_precision do
Expand Down

0 comments on commit 22cf221

Please sign in to comment.