X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b70da7b8ea15ab48bb2f34155567cea6dffc8fc9..f138055849e5b09cd94797c3e1705c6357d6b93b:/test/controllers/issues_controller_test.rb diff --git a/test/controllers/issues_controller_test.rb b/test/controllers/issues_controller_test.rb index 5e980e0b8..f9f29afbb 100644 --- a/test/controllers/issues_controller_test.rb +++ b/test/controllers/issues_controller_test.rb @@ -100,7 +100,7 @@ class IssuesControllerTest < ActionDispatch::IntegrationTest session_for(create(:moderator_user)) post resolve_issue_path(:id => issue) assert_response :redirect - assert issue.reload.resolved? + assert_predicate issue.reload, :resolved? end def test_resolve_administrator @@ -127,7 +127,7 @@ class IssuesControllerTest < ActionDispatch::IntegrationTest session_for(create(:administrator_user)) post resolve_issue_path(:id => issue) assert_response :redirect - assert issue.reload.resolved? + assert_predicate issue.reload, :resolved? end def test_ignore_moderator @@ -154,7 +154,7 @@ class IssuesControllerTest < ActionDispatch::IntegrationTest session_for(create(:moderator_user)) post ignore_issue_path(:id => issue) assert_response :redirect - assert issue.reload.ignored? + assert_predicate issue.reload, :ignored? end def test_ignore_administrator @@ -181,7 +181,7 @@ class IssuesControllerTest < ActionDispatch::IntegrationTest session_for(create(:administrator_user)) post ignore_issue_path(:id => issue) assert_response :redirect - assert issue.reload.ignored? + assert_predicate issue.reload, :ignored? end def test_reopen_moderator @@ -210,7 +210,7 @@ class IssuesControllerTest < ActionDispatch::IntegrationTest session_for(create(:moderator_user)) post reopen_issue_path(:id => issue) assert_response :redirect - assert issue.reload.open? + assert_predicate issue.reload, :open? end def test_reopen_administrator @@ -239,6 +239,6 @@ class IssuesControllerTest < ActionDispatch::IntegrationTest session_for(create(:administrator_user)) post reopen_issue_path(:id => issue) assert_response :redirect - assert issue.reload.open? + assert_predicate issue.reload, :open? end end