From 9313c642310a1f4b8afcc93ae565e4e803788a5a Mon Sep 17 00:00:00 2001 From: Arausei Johnson Date: Fri, 12 Feb 2021 14:32:10 +0000 Subject: [PATCH] Done. --- spec/no_ruby_errors_spec.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/no_ruby_errors_spec.rb b/spec/no_ruby_errors_spec.rb index d439bbe..40151f1 100644 --- a/spec/no_ruby_errors_spec.rb +++ b/spec/no_ruby_errors_spec.rb @@ -4,7 +4,7 @@ it 'raises a NameError when encountering undefined barewords' do expect{ load './lib/a_name_error.rb' - }.to_not raise_error + }.to raise_error(NameError) end end @@ -12,7 +12,7 @@ it 'raises a SyntaxError for nonsensical code' do expect{ load './lib/a_syntax_error.rb' - }.to_not raise_error + }.to raise_error(SyntaxError) end end @@ -20,7 +20,7 @@ it 'raises a TypeError for objects of the wrong type' do expect{ load './lib/a_type_error.rb' - }.to_not raise_error + }.to raise_error(TypeError) end end @@ -28,7 +28,7 @@ it 'raises a ZeroDivisionError for dividing by zero' do expect{ load './lib/a_division_by_zero_error.rb' - }.to_not raise_error + }.to raise_error(ZeroDivisionError) end end -end \ No newline at end of file +end