Skip to content

Commit

Permalink
Parenthesis are added to assert_raises and refute_raises
Browse files Browse the repository at this point in the history
  • Loading branch information
ntl committed Oct 17, 2019
1 parent a3196cd commit 7732ab2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/automated/missing_receiver_attributes/ignored.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
receiver = Controls::Object::MissingAttribute.example

test "Not an error" do
refute_raises SetAttributes::Assign::Error do
refute_raises(SetAttributes::Assign::Error) do
SetAttributes.(receiver, source, include: mapping)
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/automated/missing_receiver_attributes/strict.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
receiver = Controls::Object::MissingAttribute.example

test "Is an error" do
assert_raises SetAttributes::Assign::Error do
assert_raises(SetAttributes::Assign::Error) do
SetAttributes.(receiver, source, strict: true, include: mapping)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
reciever = nil

test "Is an error" do
assert_raises SetAttributes::DataSource::Object::Error do
assert_raises(SetAttributes::DataSource::Object::Error) do
SetAttributes.build(reciever, source)
end
end
Expand Down

0 comments on commit 7732ab2

Please sign in to comment.