summaryrefslogtreecommitdiff
path: root/spec/ruby/core/math/log_spec.rb
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-25 10:41:16 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-25 10:41:16 +0000
commite87fb88be844f0fae736768846954b6f6f7dc7c3 (patch)
treecbe2ab069e40b5b7f3217ce95b793426b303a305 /spec/ruby/core/math/log_spec.rb
parente59bf54b3a88d0465cca021afae7dc05b6db57a7 (diff)
Update to ruby/spec@241f9e7
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/core/math/log_spec.rb')
-rw-r--r--spec/ruby/core/math/log_spec.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/ruby/core/math/log_spec.rb b/spec/ruby/core/math/log_spec.rb
index 2d9fbeff03..c09e270c06 100644
--- a/spec/ruby/core/math/log_spec.rb
+++ b/spec/ruby/core/math/log_spec.rb
@@ -15,10 +15,8 @@ describe "Math.log" do
Math.log(10e15).should be_close(36.8413614879047, TOLERANCE)
end
- conflicts_with :Complex do
- it "raises an Errno::EDOM if the argument is less than 0" do
- lambda { Math.log(-1e-15) }.should raise_error(Errno::EDOM)
- end
+ it "raises an Math::DomainError if the argument is less than 0" do
+ lambda { Math.log(-1e-15) }.should raise_error(Math::DomainError)
end
it "raises a TypeError if the argument cannot be coerced with Float()" do