Sha256: 057de0385f77f229fe9dde67ba2fd6f41f2d9f8fd0ba3278ebec3463852ffcf1

Contents?: true

Size: 219 Bytes

Versions: 13

Compression:

Stored size: 219 Bytes

Contents

require 'spec_helper'

describe Virtus::Coercion::Date, '.to_date' do
  subject { object.to_date(date) }

  let(:object) { described_class      }
  let(:date)   { Date.new(2012, 1, 1) }

  it { should equal(date) }
end

Version data entries

13 entries across 13 versions & 2 rubygems

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