Sha256: 19a603cba826b93c1ca655830747ce07514c8bac3498b8ae3bfcda390ed4052a

Contents?: true

Size: 243 Bytes

Versions: 6

Compression:

Stored size: 243 Bytes

Contents

require 'spec_helper'
require 'parameters/types/float'

describe Parameters::Types::Float do
  subject { described_class }

  describe "coerce" do
    it "should call #to_f" do
      subject.coerce('-0.001').should == -0.001
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
parameters-0.4.4 spec/types/float_spec.rb
parameters-0.4.3 spec/types/float_spec.rb
parameters-0.4.2 spec/types/float_spec.rb
parameters-0.4.0 spec/types/float_spec.rb
parameters-0.3.1 spec/types/float_spec.rb
parameters-0.3.0 spec/types/float_spec.rb