theforeman/foreman — pull request #251 by GregSutcliffe (2012-11-20 10:12:09+00:00)
Title: Fix tests broken by changing default behaviour for users

The tests were all broken by the change in the default behaviour for users - they relied on the fact that users with no compute resource filters could see *no* resources. We changed it so they could see *all* resources, so any test which did not explicitly set up the compute resources had a problem.

For compactness, the setup_user method has been altered to include a compute resource, and single test altered to check that with unconstrained access, the user can still edit.