Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Done #2179

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Done #2179

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/a_division_by_zero_error.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
42 / 6

42 / 0
42 / 6
2 changes: 1 addition & 1 deletion lib/a_name_error.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"hello world"

hello_world
"hello_world"
2 changes: 1 addition & 1 deletion lib/a_type_error.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
1 + 1

1 + "is the loneliest number"
1 "is the loneliest number"
6 changes: 3 additions & 3 deletions spec/no_ruby_errors_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
it 'raises a SyntaxError for nonsensical code' do
expect{
load './lib/a_syntax_error.rb'
}.to_not raise_error
}.to raise_error
end
end

context 'TypeError' do
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

Expand All @@ -31,4 +31,4 @@
}.to_not raise_error
end
end
end
end