Browse files

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

  • Loading branch information...
1 parent 6c0af33 commit a867738d7b057e3e8c15d0e9a09e74515d8a2b96 @solnic committed Mar 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/unit/virtus/coercion/decimal/class_methods/to_decimal_spec.rb
View
2 spec/unit/virtus/coercion/decimal/class_methods/to_decimal_spec.rb
@@ -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

0 comments on commit a867738

Please sign in to comment.