Permalink
Browse files

Add spec for Virtus::Coercion::Float.to_float

  • Loading branch information...
1 parent 6327b6e commit dd9237d352f98527b0a1a324b508d36f3aeff322 @solnic committed Mar 19, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 spec/unit/virtus/coercion/float/class_methods/to_float_spec.rb
View
7 spec/unit/virtus/coercion/float/class_methods/to_float_spec.rb
@@ -1,5 +1,10 @@
require 'spec_helper'
describe Virtus::Coercion::Float, '.to_float' do
- it 'should have spec'
+ subject { described_class.to_float(value) }
+
+ let(:value) { mock('value') }
+
+ it { should be(value) }
end
+

0 comments on commit dd9237d

Please sign in to comment.