Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use real decimal object in Virtus::Coercion::Decimal.to_decimal

  • Loading branch information...
commit a867738d7b057e3e8c15d0e9a09e74515d8a2b96 1 parent 6c0af33
Piotr Solnica authored
2  spec/unit/virtus/coercion/decimal/class_methods/to_decimal_spec.rb
View
@@ -3,7 +3,7 @@
describe Virtus::Coercion::Decimal, '.to_decimal' do
subject { described_class.to_decimal(value) }
- let(:value) { mock('value') }
+ let(:value) { BigDecimal('1.0') }
it { should be(value) }
end
Please sign in to comment.
Something went wrong with that request. Please try again.