spec/coerce_spec.rb in moosex-0.0.11 vs spec/coerce_spec.rb in moosex-0.0.12
- old
+ new
@@ -19,13 +19,9 @@
is: :lazy,
isa: Integer,
coerce: lambda {|value| value.to_i },
builder: lambda{|object| "2048" },
}
-
- def trigger_attr(new_value)
- puts "change value of attribute to #{new_value}"
- end
end
describe "CoerceTest" do
it "should coerce the argument using to_i on constructor" do
ct = CoerceTest.new(attribute_ro: "12")