Skip to content

Commit

Permalink
Update merge_request_test.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
kartiki975 committed Jan 26, 2024
1 parent 7508542 commit 6dcb970
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/models/merge_request_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,10 @@ class MergeRequestTest < ActiveSupport::TestCase
end

test "status transitions emit hooks" do
job = assert_enqueued_with(job: EmitEventJob) do
expected_args = ->(job_args) do
job_args.first[:event] == 'merge'
end
job = assert_enqueued_with(job: EmitEventJob, args: expected_args) do
@pr.reject!('merge_conflict')
end
params = job.arguments.first
Expand Down

0 comments on commit 6dcb970

Please sign in to comment.