Displaying 1 result from an estimated 1 matches for "valid_shipping_address_attribut".
Did you mean:
valid_shipping_address_attributes
2007 Nov 14
4
Stubbing out required associated models
...add some valid
attribute helpers to make the associated model pass as well:
module UserSpecHelper
def valid_user_attributes
{
:email => "test at here.com",
:password => "tttttt",
:password_confirmation => "tttttt"
}
end
def valid_shipping_address_attributes
{
:street => "blah street",
:city => "blah",
:state => "CA",
:zip => "54455"
}
end
end
Now, I''ve been thinking, I should probably just stub out the associated
models in order to focus my specs on...