Actions
Bug #13272
closedBasic edit test can fail when fixtures don't exist for a particular model
Description
Some helper methods now exist for testing edit pages:
test/functional/shared/basic_rest_response_test.rb
basic_edit_test takes a record as an argument, which for most models is passed as `ModelClass.first`, however, .first may not exist at class evaluation if there's no fixtures. This is the case with Usergroups.
And due to database cleaning, the object needs to be created within the context of the basic_edit_test method, so passing something like FactoryGirl.create directly also doesn't work in some cases.
Actions