require 'spec_helper'

describe Virtus::Coercion::Float, '.to_float' do
  subject { described_class.to_float(value) }

  let(:value) { mock('value') }

  it { should be(value) }
end


require 'spec_helper'

describe Virtus::Coercion::Float, '.to_float' do
  subject { described_class.to_float(value) }

  let(:value) { 1.0 }

  it { should be(value) }
end


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