Sha256: 392cbc3528e2f9c2b5cf3362535cb9f30eab6ae3eebf2408a2b711f144f66d11

Contents?: true

Size: 306 Bytes

Versions: 13

Compression:

Stored size: 306 Bytes

Contents

require 'spec_helper'

describe Virtus::Attribute::String, '#coerce' do
  subject { attribute.coerce(value) }

  let(:attribute)    { described_class.new(:name) }
  let(:value)        { 1                          }
  let(:coerce_value) { '1'                        }

  it { should eql(coerce_value) }
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
virtus-0.5.5 spec/unit/virtus/attribute/string/coerce_spec.rb
virtus-0.5.4 spec/unit/virtus/attribute/string/coerce_spec.rb
virtus-0.5.3 spec/unit/virtus/attribute/string/coerce_spec.rb
fragrant-0.0.5 vendor/bundle/ruby/1.9.1/gems/virtus-0.5.2/spec/unit/virtus/attribute/string/coerce_spec.rb
virtus-0.5.2 spec/unit/virtus/attribute/string/coerce_spec.rb
virtus-0.5.1 spec/unit/virtus/attribute/string/coerce_spec.rb
virtus-0.5.0 spec/unit/virtus/attribute/string/coerce_spec.rb
virtus-0.4.2 spec/unit/virtus/attribute/string/coerce_spec.rb
virtus-0.4.1 spec/unit/virtus/attribute/string/coerce_spec.rb
virtus-0.4.0 spec/unit/virtus/attribute/string/coerce_spec.rb
virtus-0.3.0 spec/unit/virtus/attribute/string/coerce_spec.rb
virtus-0.2.0 spec/unit/virtus/attribute/string/coerce_spec.rb
virtus-0.1.0 spec/unit/virtus/attribute/string/coerce_spec.rb