test/definition_test.rb in representable-1.1.4 vs test/definition_test.rb in representable-1.1.5

- old
+ new

@@ -40,9 +40,20 @@ end it "responds to #sought_type" do assert_equal nil, @def.sought_type end + + describe "#clone" do + it "clones @options" do + @def.options[:volume] = 9 + cloned = @def.clone + cloned.options[:volume] = 8 + + assert_equal @def.options[:volume], 9 + assert_equal cloned.options[:volume], 8 + end + end end describe ":collection => true" do before do