From 38a642926e9644d753fe76755d9360a0aba81e79 Mon Sep 17 00:00:00 2001 From: Madeline Kendall Date: Fri, 2 Apr 2021 18:41:34 +0000 Subject: [PATCH] Done. --- lib/a_division_by_zero_error.rb | 2 +- lib/a_name_error.rb | 2 +- lib/a_syntax_error.rb | 2 +- lib/a_type_error.rb | 2 +- spec/no_ruby_errors_spec.rb | 1 + 5 files changed, 5 insertions(+), 4 deletions(-) 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_syntax_error.rb b/lib/a_syntax_error.rb index 5252c8f7..a14ac9d5 100644 --- a/lib/a_syntax_error.rb +++ b/lib/a_syntax_error.rb @@ -1,3 +1,3 @@ x = 1 -x = +x = 1 diff --git a/lib/a_type_error.rb b/lib/a_type_error.rb index 1217fd52..34339470 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 + 1 diff --git a/spec/no_ruby_errors_spec.rb b/spec/no_ruby_errors_spec.rb index d439bbeb..52f9d52b 100644 --- a/spec/no_ruby_errors_spec.rb +++ b/spec/no_ruby_errors_spec.rb @@ -1,3 +1,4 @@ + describe "Not having any errors and being all green" do context 'NameError' do