Sha256: 3cb392975a06bd1ed26ecb076d28565d7f8cb3a599a43bdf0d809a170059b2d1

Contents?: true

Size: 294 Bytes

Versions: 3

Compression:

Stored size: 294 Bytes

Contents

require 'spec_helper'

describe Virtus::Attribute do
  describe '#typecast_to_primitive' do
    let(:attribute) { Virtus::Attribute.new(:name) }
    let(:value)     { 'value' }

    it "returns original value" do
      attribute.typecast_to_primitive(value).should eql(value)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
virtus-0.0.5 spec/unit/virtus/attribute/attribute_spec.rb
virtus-0.0.4 spec/unit/virtus/attribute/attribute_spec.rb
virtus-0.0.3 spec/unit/virtus/attribute/attribute_spec.rb