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,13 +1,6 @@
|
||||
require 'test_helper'
|
||||
require 'helpers/pool_archive_test_helper'
|
||||
require 'helpers/saved_search_test_helper'
|
||||
require 'helpers/iqdb_test_helper'
|
||||
|
||||
class PostTest < ActiveSupport::TestCase
|
||||
include PoolArchiveTestHelper
|
||||
include SavedSearchTestHelper
|
||||
include IqdbTestHelper
|
||||
|
||||
def assert_tag_match(posts, query)
|
||||
assert_equal(posts.map(&:id), Post.tag_match(query).pluck(:id))
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user