Skip to content

Commit

Permalink
test (workflow) correct test assertion error type
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixMarcusMillne committed Aug 21, 2023
1 parent b331c9d commit 6394162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/models/workflow_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ def template_user_and_published_transaction
edition = FactoryBot.create(:edition, state: "ready")
raise_exception = -> { raise "something went wrong with the publish transition" }
edition.stub :was_published, raise_exception do
assert_raises(ArgumentError) { publish(@user, edition, "this should fail") }
assert_raises(RuntimeError) { publish(@user, edition, "this should fail") }
end
assert_equal "ready", edition.state
end
Expand Down

0 comments on commit 6394162

Please sign in to comment.