Sha256: ee2a5b56fca000183401de8ff12b8de2952a57d991865aff45a627d2105eaf70

Contents?: true

Size: 537 Bytes

Versions: 104

Compression:

Stored size: 537 Bytes

Contents

require 'spec_helper'

describe ActiveFedora::Attributes::Serializers do
  subject { ActiveFedora::Base }
  describe "deserialize_dates_from_form" do
    before do
      class Foo < ActiveFedora::Base
        attr_accessor :birthday
      end
    end
    after do
      Object.send(:remove_const, :Foo)
    end
    subject { Foo.new }
    it "should deserialize dates" do
      subject.attributes = {'birthday(1i)' =>'2012', 'birthday(2i)' =>'10', 'birthday(3i)' => '31'}
      subject.birthday.should == '2012-10-31'
    end
  end

end

Version data entries

104 entries across 104 versions & 1 rubygems

Version Path
active-fedora-7.3.1 spec/unit/serializers_spec.rb
active-fedora-7.3.0 spec/unit/serializers_spec.rb
active-fedora-8.2.1 spec/unit/serializers_spec.rb
active-fedora-8.2.0 spec/unit/serializers_spec.rb
active-fedora-7.2.0 spec/unit/serializers_spec.rb
active-fedora-8.1.0 spec/unit/serializers_spec.rb
active-fedora-8.0.1 spec/unit/serializers_spec.rb
active-fedora-8.0.0 spec/unit/serializers_spec.rb
active-fedora-8.0.0.rc3 spec/unit/serializers_spec.rb
active-fedora-8.0.0.rc2 spec/unit/serializers_spec.rb
active-fedora-8.0.0.rc1 spec/unit/serializers_spec.rb
active-fedora-7.1.2 spec/unit/serializers_spec.rb
active-fedora-7.1.1 spec/unit/serializers_spec.rb
active-fedora-7.1.0 spec/unit/serializers_spec.rb
active-fedora-6.7.8 spec/unit/serializers_spec.rb
active-fedora-7.0.4 spec/unit/serializers_spec.rb
active-fedora-7.0.3 spec/unit/serializers_spec.rb
active-fedora-7.0.2 spec/unit/serializers_spec.rb
active-fedora-7.0.1 spec/unit/serializers_spec.rb
active-fedora-7.0.0 spec/unit/serializers_spec.rb