aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/math/acosh_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/math/acosh_spec.rb')
-rw-r--r--spec/ruby/core/math/acosh_spec.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/spec/ruby/core/math/acosh_spec.rb b/spec/ruby/core/math/acosh_spec.rb
index 6616ea3faa..26c18a530f 100644
--- a/spec/ruby/core/math/acosh_spec.rb
+++ b/spec/ruby/core/math/acosh_spec.rb
@@ -11,12 +11,10 @@ describe "Math.acosh" do
Math.acosh(1.0).should be_close(0.0, TOLERANCE)
end
- conflicts_with :Complex do
- it "raises Errno::EDOM if the passed argument is less than -1.0 or greater than 1.0" do
- lambda { Math.acosh(1.0 - TOLERANCE) }.should raise_error(Errno::EDOM)
- lambda { Math.acosh(0) }.should raise_error(Errno::EDOM)
- lambda { Math.acosh(-1.0) }.should raise_error(Errno::EDOM)
- end
+ it "raises Math::DomainError if the passed argument is less than -1.0 or greater than 1.0" do
+ lambda { Math.acosh(1.0 - TOLERANCE) }.should raise_error(Math::DomainError)
+ lambda { Math.acosh(0) }.should raise_error(Math::DomainError)
+ lambda { Math.acosh(-1.0) }.should raise_error(Math::DomainError)
end
it "raises a TypeError if the argument cannot be coerced with Float()" do