From: Andy Allan Date: Thu, 1 Jun 2017 10:00:50 +0000 (+0100) Subject: Remove remaining references to fixtures. X-Git-Tag: live~3355 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/86822ea225baf400c7978b0d459b821dbe17e293 Remove remaining references to fixtures. --- diff --git a/test/controllers/user_blocks_controller_test.rb b/test/controllers/user_blocks_controller_test.rb index a88570c6b..c821ea39e 100644 --- a/test/controllers/user_blocks_controller_test.rb +++ b/test/controllers/user_blocks_controller_test.rb @@ -1,8 +1,6 @@ require "test_helper" class UserBlocksControllerTest < ActionController::TestCase - fixtures :users, :user_roles - ## # test all routes which lead to this controller def test_routes diff --git a/test/helpers/browse_helper_test.rb b/test/helpers/browse_helper_test.rb index 62aa73f94..4031c3de1 100644 --- a/test/helpers/browse_helper_test.rb +++ b/test/helpers/browse_helper_test.rb @@ -6,8 +6,6 @@ class BrowseHelperTest < ActionView::TestCase include ERB::Util include ApplicationHelper - api_fixtures - def setup I18n.locale = "en" end diff --git a/test/models/changeset_comment_test.rb b/test/models/changeset_comment_test.rb index 5ef0c1d93..0999ea505 100644 --- a/test/models/changeset_comment_test.rb +++ b/test/models/changeset_comment_test.rb @@ -2,8 +2,6 @@ require "test_helper" class ChangesetCommentTest < ActiveSupport::TestCase - fixtures :changesets, :users - # validations def test_does_not_accept_invalid_author comment = create(:changeset_comment) diff --git a/test/models/note_comment_test.rb b/test/models/note_comment_test.rb index 2375ba9d4..6f3d6c3aa 100644 --- a/test/models/note_comment_test.rb +++ b/test/models/note_comment_test.rb @@ -2,8 +2,6 @@ require "test_helper" class NoteCommentTest < ActiveSupport::TestCase - fixtures :users - def test_event_valid ok = %w(opened closed reopened commented hidden) bad = %w(expropriated fubared) diff --git a/test/models/note_test.rb b/test/models/note_test.rb index e3831b2c0..847efe97c 100644 --- a/test/models/note_test.rb +++ b/test/models/note_test.rb @@ -2,8 +2,6 @@ require "test_helper" class NoteTest < ActiveSupport::TestCase - fixtures :users - def test_status_valid ok = %w(open closed hidden) bad = %w(expropriated fubared)