Skip to content

Commit

Permalink
keep setup and teardown to the bare minimum
Browse files Browse the repository at this point in the history
Tests will run faster if you don't run everything that super runs.
request here: #2005 (comment)
  • Loading branch information
vasconsaurus committed Sep 16, 2024
1 parent 93963ab commit e35c643
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion test/models/project_media_8_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@

class ProjectMedia8Test < ActiveSupport::TestCase
def setup
super
require 'sidekiq/testing'
Sidekiq::Worker.clear_all
end

def teardown
end

test ":create_tags should create tags when project media id and tags are present" do
Expand Down
5 changes: 4 additions & 1 deletion test/workers/generic_worker_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@

class GenericWorkerTest < ActiveSupport::TestCase
def setup
super
require 'sidekiq/testing'
Sidekiq::Worker.clear_all
end

def teardown
end

test "should schedule a job for a method that takes a hash: Tag creation" do
Expand Down

0 comments on commit e35c643

Please sign in to comment.