Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki24 committed Dec 18, 2018
1 parent 86fa28e commit 707d293
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/core_ext/name_error_extension_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ def test_to_s_does_not_make_disruptive_changes_to_error_message

def test_correctable_error_objects_are_dumpable
error = begin
File.open('/tmp/file').sizee
File.open('./tmp/.keep').sizee
rescue NoMethodError => e
e
end

error.to_s

assert_equal "undefined method `sizee' for #<File:/tmp/file>", Marshal.load(Marshal.dump(error)).original_message
assert_equal "undefined method `sizee' for #<File:./tmp/.keep>", Marshal.load(Marshal.dump(error)).original_message
end
end

0 comments on commit 707d293

Please sign in to comment.