Sha256: 601c57f162963acf55a02e24ac0d23eff7d5b67857570c831f6465f66781d37d

Contents?: true

Size: 192 Bytes

Versions: 9

Compression:

Stored size: 192 Bytes

Contents

require 'spec_helper'

describe Virtus::Coercion::Decimal, '.to_decimal' do
  subject { described_class.to_decimal(value) }

  let(:value) { BigDecimal('1.0') }

  it { should be(value) }
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
virtus-0.5.5 spec/unit/virtus/coercion/decimal/class_methods/to_decimal_spec.rb
virtus-0.5.4 spec/unit/virtus/coercion/decimal/class_methods/to_decimal_spec.rb
virtus-0.5.3 spec/unit/virtus/coercion/decimal/class_methods/to_decimal_spec.rb
fragrant-0.0.5 vendor/bundle/ruby/1.9.1/gems/virtus-0.5.2/spec/unit/virtus/coercion/decimal/class_methods/to_decimal_spec.rb
virtus-0.5.2 spec/unit/virtus/coercion/decimal/class_methods/to_decimal_spec.rb
virtus-0.5.1 spec/unit/virtus/coercion/decimal/class_methods/to_decimal_spec.rb
virtus-0.5.0 spec/unit/virtus/coercion/decimal/class_methods/to_decimal_spec.rb
virtus-0.4.2 spec/unit/virtus/coercion/decimal/class_methods/to_decimal_spec.rb
virtus-0.4.1 spec/unit/virtus/coercion/decimal/class_methods/to_decimal_spec.rb