tests: set Delayed::Worker.delay_jobs = false globally.
This commit is contained in:
@@ -13,7 +13,6 @@ class PostTest < ActiveSupport::TestCase
|
||||
CurrentUser.user = @user
|
||||
CurrentUser.ip_addr = "127.0.0.1"
|
||||
MEMCACHE.flush_all
|
||||
Delayed::Worker.delay_jobs = false
|
||||
mock_saved_search_service!
|
||||
end
|
||||
|
||||
@@ -520,7 +519,6 @@ class PostTest < ActiveSupport::TestCase
|
||||
context "with an artist tag that is then changed to copyright" do
|
||||
setup do
|
||||
CurrentUser.user = FactoryGirl.create(:builder_user)
|
||||
Delayed::Worker.delay_jobs = false
|
||||
@post = Post.find(@post.id)
|
||||
@post.update(:tag_string => "art:abc")
|
||||
@post = Post.find(@post.id)
|
||||
@@ -528,10 +526,6 @@ class PostTest < ActiveSupport::TestCase
|
||||
@post.reload
|
||||
end
|
||||
|
||||
teardown do
|
||||
Delayed::Worker.delay_jobs = true
|
||||
end
|
||||
|
||||
should "update the category of the tag" do
|
||||
assert_equal(Tag.categories.copyright, Tag.find_by_name("abc").category)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user