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