tests: move test/helpers to test/test_helpers.
The Rails convention is for test/helpers to be used for testing the view helpers in app/helpers. We were using it to store certain utility methods instead. Move these to test/test_helpers so that test/helpers can be used for its intended purpose.
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
require 'test_helper'
|
||||
require 'helpers/iqdb_test_helper'
|
||||
|
||||
class IqdbQueriesControllerTest < ActionController::TestCase
|
||||
include IqdbTestHelper
|
||||
|
||||
context "The iqdb controller" do
|
||||
setup do
|
||||
@user = FactoryGirl.create(:user)
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
require 'test_helper'
|
||||
require 'helpers/pool_archive_test_helper'
|
||||
|
||||
class PoolElementsControllerTest < ActionController::TestCase
|
||||
include PoolArchiveTestHelper
|
||||
|
||||
context "The pools posts controller" do
|
||||
setup do
|
||||
mock_pool_archive_service!
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
require 'test_helper'
|
||||
require 'helpers/pool_archive_test_helper'
|
||||
|
||||
class PoolVersionsControllerTest < ActionController::TestCase
|
||||
include PoolArchiveTestHelper
|
||||
|
||||
context "The pool versions controller" do
|
||||
setup do
|
||||
mock_pool_archive_service!
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
require 'test_helper'
|
||||
require 'helpers/pool_archive_test_helper'
|
||||
|
||||
class PoolsControllerTest < ActionController::TestCase
|
||||
include PoolArchiveTestHelper
|
||||
|
||||
context "The pools controller" do
|
||||
setup do
|
||||
Timecop.travel(1.month.ago) do
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
require 'test_helper'
|
||||
require 'helpers/post_archive_test_helper'
|
||||
|
||||
class PostVersionsControllerTest < ActionController::TestCase
|
||||
include PostArchiveTestHelper
|
||||
|
||||
def setup
|
||||
super
|
||||
|
||||
@user = FactoryGirl.create(:user)
|
||||
CurrentUser.user = @user
|
||||
CurrentUser.ip_addr = "127.0.0.1"
|
||||
@@ -13,6 +11,7 @@ class PostVersionsControllerTest < ActionController::TestCase
|
||||
|
||||
def teardown
|
||||
super
|
||||
|
||||
CurrentUser.user = nil
|
||||
CurrentUser.ip_addr = nil
|
||||
end
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
require 'test_helper'
|
||||
require 'helpers/post_archive_test_helper'
|
||||
|
||||
class ReportsControllerTest < ActionController::TestCase
|
||||
include PostArchiveTestHelper
|
||||
|
||||
def setup
|
||||
super
|
||||
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
require 'test_helper'
|
||||
require 'helpers/saved_search_test_helper'
|
||||
|
||||
class SavedSearchesControllerTest < ActionController::TestCase
|
||||
include SavedSearchTestHelper
|
||||
|
||||
context "The saved searches controller" do
|
||||
setup do
|
||||
@user = FactoryGirl.create(:user)
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
require 'test_helper'
|
||||
require 'helpers/iqdb_test_helper'
|
||||
|
||||
class UploadsControllerTest < ActionController::TestCase
|
||||
include IqdbTestHelper
|
||||
|
||||
def setup
|
||||
super
|
||||
mock_iqdb_service!
|
||||
|
||||
Reference in New Issue
Block a user