Skip to content

Commit

Permalink
Fix good_job for inline behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
stage-rl committed Dec 6, 2023
1 parent f4be65c commit ccf71e2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/system/message_threads_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class MessageThreadsTest < ApplicationSystemTestCase
thread_issue = message_threads(:ssd_main_issue)
message_one = messages(:ssd_main_issue_one)

assert GoodJob::Job.where(job_class: 'Govbox::SubmitMessageDraftJob').blank?
assert_not GoodJob::Job.where(job_class: 'Govbox::SubmitMessageDraftJob').exists?

visit message_thread_path thread_issue
within_message_in_thread message_one do
Expand All @@ -188,7 +188,6 @@ class MessageThreadsTest < ApplicationSystemTestCase
click_button "Odoslať"
end

GoodJob.perform_inline
assert GoodJob::Job.where(job_class: 'Govbox::SubmitMessageDraftJob').exists?
end
end

0 comments on commit ccf71e2

Please sign in to comment.