search for: permissionsynchron

Displaying 1 result from an estimated 1 matches for "permissionsynchron".

2006 Mar 16
0
UserEngine and the test environment
...get :index assert_response :success end end Obviously, this test fails. If I change the dev DB, I can test in the browser, and it works fine. But, the test DB does not contain the necessary permissions and roles. I added this to test/test_helper.rb: unless Object.const_defined?(''PermissionSynchronized'') $stderr.puts "Synchronizing permissions" Permission.sychronize_controllers PermissionSynchronized = true end which ensures my permissions are created for the test environment. The only thing missing is now roles. How should I map them ? Should I write a SQL copy o...