summaryrefslogtreecommitdiff
path: root/spec/ruby/core/kernel/not_match_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/kernel/not_match_spec.rb')
-rw-r--r--spec/ruby/core/kernel/not_match_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/kernel/not_match_spec.rb b/spec/ruby/core/kernel/not_match_spec.rb
index 082e56fed7..4ed7ea7b42 100644
--- a/spec/ruby/core/kernel/not_match_spec.rb
+++ b/spec/ruby/core/kernel/not_match_spec.rb
@@ -15,7 +15,7 @@ describe "Kernel#!~" do
end
it "raises NoMethodError if self does not respond to #=~" do
- -> { Object.new !~ :foo }.should raise_error(NoMethodError)
+ -> { Object.new !~ :foo }.should.raise(NoMethodError)
end
it 'can be overridden in subclasses' do