From 7732ab216380372fa6de400fe60c1538746fa3fa Mon Sep 17 00:00:00 2001 From: Nathan Ladd Date: Thu, 17 Oct 2019 16:32:45 -0500 Subject: [PATCH] Parenthesis are added to assert_raises and refute_raises --- test/automated/missing_receiver_attributes/ignored.rb | 2 +- test/automated/missing_receiver_attributes/strict.rb | 2 +- .../set_attributes/object_source/mapping_is_omitted.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/automated/missing_receiver_attributes/ignored.rb b/test/automated/missing_receiver_attributes/ignored.rb index 6fce49d..87e3f98 100644 --- a/test/automated/missing_receiver_attributes/ignored.rb +++ b/test/automated/missing_receiver_attributes/ignored.rb @@ -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 diff --git a/test/automated/missing_receiver_attributes/strict.rb b/test/automated/missing_receiver_attributes/strict.rb index 03744c1..b5b8262 100644 --- a/test/automated/missing_receiver_attributes/strict.rb +++ b/test/automated/missing_receiver_attributes/strict.rb @@ -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 diff --git a/test/automated/set_attributes/object_source/mapping_is_omitted.rb b/test/automated/set_attributes/object_source/mapping_is_omitted.rb index 0c5d8d8..435e656 100644 --- a/test/automated/set_attributes/object_source/mapping_is_omitted.rb +++ b/test/automated/set_attributes/object_source/mapping_is_omitted.rb @@ -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