Sha256: 4025291e275bd7025efad2787322e0a0da5521c1c585d8d145f4a63bb8462987
Contents?: true
Size: 549 Bytes
Versions: 7
Compression:
Stored size: 549 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe Datt do before do reset_database @page = Page.create end it "should allow transferring between String and Text" do @page.add_dynamic_attribute(:foo, "string") @page.foo = "this is a string" @page.save @page.foo = "t"*300 @page.save @page.datts.find_by_attr_key("foo").object_type.should == "text" @page.foo = "this is a string again" @page.save @page.datts.find_by_attr_key("foo").object_type.should == "string" end end
Version data entries
7 entries across 7 versions & 1 rubygems