require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe DynamicAttributeDefinition do it "should serialize the definition" do category = Category.create category.definition = {:that => "is", :cool => "right?"} category.definition[:that].should == "is" category.definition[:cool].should == "right?" end end