summaryrefslogtreecommitdiff
path: root/spec/ruby/core/exception/shared/set_backtrace.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/exception/shared/set_backtrace.rb')
-rw-r--r--spec/ruby/core/exception/shared/set_backtrace.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/ruby/core/exception/shared/set_backtrace.rb b/spec/ruby/core/exception/shared/set_backtrace.rb
index c6213b42b4..934bf3dc5f 100644
--- a/spec/ruby/core/exception/shared/set_backtrace.rb
+++ b/spec/ruby/core/exception/shared/set_backtrace.rb
@@ -43,22 +43,22 @@ describe :exception_set_backtrace, shared: true do
it "accepts nil" do
err = @method.call(nil)
- err.backtrace.should be_nil
+ err.backtrace.should == nil
end
it "raises a TypeError when passed a Symbol" do
- -> { @method.call(:unhappy) }.should raise_error(TypeError)
+ -> { @method.call(:unhappy) }.should.raise(TypeError)
end
it "raises a TypeError when the Array contains a Symbol" do
- -> { @method.call(["String", :unhappy]) }.should raise_error(TypeError)
+ -> { @method.call(["String", :unhappy]) }.should.raise(TypeError)
end
it "raises a TypeError when the array contains nil" do
- -> { @method.call(["String", nil]) }.should raise_error(TypeError)
+ -> { @method.call(["String", nil]) }.should.raise(TypeError)
end
it "raises a TypeError when the argument is a nested array" do
- -> { @method.call(["String", ["String"]]) }.should raise_error(TypeError)
+ -> { @method.call(["String", ["String"]]) }.should.raise(TypeError)
end
end