@@ -114,7 +114,7 class RolesControllerTest < ActionController::TestCase | |||
|
114 | 114 | def test_destroy_role_in_use |
|
115 | 115 | post :destroy, :id => 1 |
|
116 | 116 | assert_redirected_to '/roles' |
|
117 |
assert flash[:error] == 'This role is in use and can |
|
|
117 | assert flash[:error] == 'This role is in use and cannot be deleted.' | |
|
118 | 118 | assert_not_nil Role.find_by_id(1) |
|
119 | 119 | end |
|
120 | 120 |
General Comments 0
You need to be logged in to leave comments.
Login now