Displaying 1 result from an estimated 1 matches for "brand_url".
Did you mean:
branchurl
2011 Aug 04
3
#create tests fail when I add FriendlyId to my model
...39;'
Here''s the relevant line in brand.rb:
has_friendly_id :name, :use_slug => true, :approximate_ascii => true
Here''s the test (using mocha):
def test_create_valid
Brand.any_instance.stubs(:valid?).returns(true)
post :create
assert_redirected_to brand_url(assigns(:brand))
end
Here''s the fixture:
one:
name: MyString
image_file_name: MyString
image_content_type: MyString
image_file_size: 1
image_updated_at: 2011-08-03 10:49:03
tease: MyText
description: MyText
All other tests pass, and if I comment out has_friendly_...