Sha256: 659ff51af3120188ef9170c3a11c941b91f6ba8562d76169ba48425b55ce98a7

Contents?: true

Size: 254 Bytes

Versions: 12

Compression:

Stored size: 254 Bytes

Contents

require 'spec_helper'

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

  let(:attribute) { described_class.new(:code) }

  context 'with a string' do
    let(:value) { 'foo' }

    it { should be(:foo) }
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

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