Skip to content

Commit

Permalink
Merge 22cf221 into ddf506a
Browse files Browse the repository at this point in the history
  • Loading branch information
antstorm committed Dec 28, 2016
2 parents ddf506a + 22cf221 commit 9b2e8f9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -6,6 +6,7 @@ rvm:
- 2.1.10
- 2.2.5
- 2.3.1
- 2.4.0
- rbx-2
- jruby-9.0.5.0
- jruby-9.1.2.0
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
@@ -1,6 +1,6 @@
source 'https://rubygems.org'

gem 'coveralls', :require => false
gem 'coveralls', '~> 0.8.17', :require => false
gem 'pry', :require => false

# JSON gem no longer supports ruby < 2.0.0
Expand Down
4 changes: 2 additions & 2 deletions spec/money_spec.rb
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 9b2e8f9

Please sign in to comment.