From 86822ea225baf400c7978b0d459b821dbe17e293 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Thu, 1 Jun 2017 11:00:50 +0100 Subject: [PATCH] Remove remaining references to fixtures. --- test/controllers/user_blocks_controller_test.rb | 2 -- test/helpers/browse_helper_test.rb | 2 -- test/models/changeset_comment_test.rb | 2 -- test/models/note_comment_test.rb | 2 -- test/models/note_test.rb | 2 -- 5 files changed, 10 deletions(-) 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) -- 2.43.2