X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ef7f3d800cbdd49b692df10d312e5fd880e2e938..dc2a2c8ebd1a11e4a64555fda22c6859a51defff:/test/controllers/old_relation_controller_test.rb diff --git a/test/controllers/old_relation_controller_test.rb b/test/controllers/old_relation_controller_test.rb index 669e4431e..1ce87a252 100644 --- a/test/controllers/old_relation_controller_test.rb +++ b/test/controllers/old_relation_controller_test.rb @@ -1,5 +1,5 @@ -require 'test_helper' -require 'old_relation_controller' +require "test_helper" +require "old_relation_controller" class OldRelationControllerTest < ActionController::TestCase api_fixtures @@ -111,14 +111,14 @@ class OldRelationControllerTest < ActionController::TestCase # the appropriate flag get :version, :id => relation.relation_id, :version => relation.version assert_response :forbidden, "After redaction, node should be gone for moderator, when flag not passed." - get :version, :id => relation.relation_id, :version => relation.version, :show_redactions => 'true' + get :version, :id => relation.relation_id, :version => relation.version, :show_redactions => "true" assert_response :success, "After redaction, node should not be gone for moderator, when flag passed." # and when accessed via history get :history, :id => relation.relation_id assert_response :success, "Redaction shouldn't have stopped history working." assert_select "osm relation[id='#{relation.relation_id}'][version='#{relation.version}']", 0, "relation #{relation.relation_id} version #{relation.version} should not be present in the history for moderators when not passing flag." - get :history, :id => relation.relation_id, :show_redactions => 'true' + get :history, :id => relation.relation_id, :show_redactions => "true" assert_response :success, "Redaction shouldn't have stopped history working." assert_select "osm relation[id='#{relation.relation_id}'][version='#{relation.version}']", 1, "relation #{relation.relation_id} version #{relation.version} should still be present in the history for moderators when passing flag." end