Skip to content

Commit

Permalink
Merge pull request #537 from yujideveloper/fix/spec-warning
Browse files Browse the repository at this point in the history
Specify exception class to `raise_error` matcher
  • Loading branch information
phstc authored Nov 26, 2018
2 parents 7df21ba + 6d16724 commit f01c31d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def run_and_raise(worker, queue, sqs_msg)
allow(sqs_msg).to receive(:queue) { sqs_queue }
expect(sqs_msg).to_not receive(:change_visibility)

expect { Runner.new.run_and_raise(TestWorker.new, queue, sqs_msg) }.to raise_error
expect { Runner.new.run_and_raise(TestWorker.new, queue, sqs_msg) }.to raise_error(RuntimeError)
end

it 'does not extend message visibility if auto_visibility_timeout is not true' do
Expand Down

0 comments on commit f01c31d

Please sign in to comment.