spec/functional/representation/attribute_spec.rb in render-0.0.2 vs spec/functional/representation/attribute_spec.rb in render-0.0.3
- old
+ new
@@ -15,15 +15,15 @@
it "uses matching generator for #faux_value" do
name = "Canada Dry"
generator = Generator.new({ type: String, matcher: %r{.*name.*}, algorithm: proc { name } })
Render.generators << generator
- Attribute.new({ name: { type: String } }).default_value.should == name
+ HashAttribute.new({ name: { type: String } }).default_value.should == name
end
it "uses really bare-boned type if no generator is found" do
bare_boned_string = "A String"
- Attribute.new({ foo: { type: String } }).default_value.should == bare_boned_string
+ HashAttribute.new({ foo: { type: String } }).default_value.should == bare_boned_string
end
end
end
end