summaryrefslogtreecommitdiff
path: root/spec/ruby/core/complex/negative_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/complex/negative_spec.rb')
-rw-r--r--spec/ruby/core/complex/negative_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/complex/negative_spec.rb b/spec/ruby/core/complex/negative_spec.rb
index 62ab89c04a..566975b8e1 100644
--- a/spec/ruby/core/complex/negative_spec.rb
+++ b/spec/ruby/core/complex/negative_spec.rb
@@ -4,10 +4,10 @@ describe "Complex#negative?" do
it "is undefined" do
c = Complex(1)
- c.methods.should_not include(:negative?)
+ c.methods.should_not.include?(:negative?)
-> {
c.negative?
- }.should raise_error(NoMethodError)
+ }.should.raise(NoMethodError)
end
end