We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d01bf69 commit 20b5c9bCopy full SHA for 20b5c9b
core/kernel/raise_spec.rb
@@ -51,11 +51,11 @@
51
-> { raise(cause: nil) }.should raise_error(ArgumentError, "only cause is given with no arguments")
52
end
53
54
- it "raises an ArgumentError when given cause is not an instance of Exception" do
+ it "raises a TypeError when given cause is not an instance of Exception" do
55
-> { raise "message", cause: Object.new }.should raise_error(TypeError, "exception object expected")
56
57
58
- it "doesn't raise an ArgumentError when given cause is nil" do
+ it "doesn't raise a TypeError when given cause is nil" do
59
-> { raise "message", cause: nil }.should raise_error(RuntimeError, "message")
60
61
0 commit comments