Displaying 1 result from an estimated 1 matches for "blankerror".
Did you mean:
blah_error
2011 Aug 04
3
#create tests fail when I add FriendlyId to my model
...ing, and I can''t seem to get the create
method test to pass when friendly_id is added to the mix. If I comment
it out of the model, the tests all pass perfectly. The moment I add it
back in, the error looks like this:
1) Error:
test_create_valid(BrandsControllerTest):
FriendlyId::BlankError: FriendlyId::BlankError
app/controllers/brands_controller.rb:16:in `create''
test/functional/brands_controller_test.rb:27:in `test_create_valid''
Here''s the relevant line in brand.rb:
has_friendly_id :name, :use_slug => true, :approximate_ascii => true...