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