summaryrefslogtreecommitdiff
path: root/spec/ruby/core/exception/equal_value_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/exception/equal_value_spec.rb')
-rw-r--r--spec/ruby/core/exception/equal_value_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/exception/equal_value_spec.rb b/spec/ruby/core/exception/equal_value_spec.rb
index e8f3ce0f8d..b76b3bcd4a 100644
--- a/spec/ruby/core/exception/equal_value_spec.rb
+++ b/spec/ruby/core/exception/equal_value_spec.rb
@@ -31,10 +31,10 @@ describe "Exception#==" do
it "returns false if the two exceptions inherit from Exception but have different classes" do
one = RuntimeError.new("message")
one.set_backtrace [__dir__]
- one.should be_kind_of(Exception)
+ one.should.is_a?(Exception)
two = TypeError.new("message")
two.set_backtrace [__dir__]
- two.should be_kind_of(Exception)
+ two.should.is_a?(Exception)
one.should_not == two
end