diff --git a/lib/a_division_by_zero_error.rb b/lib/a_division_by_zero_error.rb index fa27ef36..8b324682 100644 --- a/lib/a_division_by_zero_error.rb +++ b/lib/a_division_by_zero_error.rb @@ -1,3 +1,3 @@ 42 / 6 -42 / 0 +42 / 6 diff --git a/lib/a_name_error.rb b/lib/a_name_error.rb index bad266d9..8f9b5d93 100644 --- a/lib/a_name_error.rb +++ b/lib/a_name_error.rb @@ -1,3 +1,3 @@ "hello world" -hello_world +"hello_world" diff --git a/lib/a_type_error.rb b/lib/a_type_error.rb index 1217fd52..a3d8c0f8 100644 --- a/lib/a_type_error.rb +++ b/lib/a_type_error.rb @@ -1,3 +1,3 @@ 1 + 1 -1 + "is the loneliest number" +1 "is the loneliest number" diff --git a/spec/no_ruby_errors_spec.rb b/spec/no_ruby_errors_spec.rb index d439bbeb..ff29500c 100644 --- a/spec/no_ruby_errors_spec.rb +++ b/spec/no_ruby_errors_spec.rb @@ -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 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 end end @@ -31,4 +31,4 @@ }.to_not raise_error end end -end \ No newline at end of file +end