Permalink
Browse files

Use real float object in Virtus::Coercion::Float.to_float

  • Loading branch information...
1 parent a867738 commit 1f56d587e0bf93f78fefd4fb859866f2d1cd7d84 @solnic committed Mar 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/unit/virtus/coercion/float/class_methods/to_float_spec.rb
@@ -3,7 +3,7 @@
describe Virtus::Coercion::Float, '.to_float' do
subject { described_class.to_float(value) }
- let(:value) { mock('value') }
+ let(:value) { 1.0 }
it { should be(value) }
end

0 comments on commit 1f56d58

Please sign in to comment.