aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/library/mathn
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-27 16:12:47 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-27 16:12:47 +0000
commita34db218ade33b79e7404488db5a15bad2841c25 (patch)
tree2ed22ad149cd75e36d9aabbe29b32e96c27fa3a6 /spec/ruby/library/mathn
parent0f989b87a06563add3fdeb9cda983492e8a420af (diff)
downloadruby-a34db218ade33b79e7404488db5a15bad2841c25.tar.gz
Update to ruby/spec@0fe33ac
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/library/mathn')
-rw-r--r--spec/ruby/library/mathn/mathn_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/ruby/library/mathn/mathn_spec.rb b/spec/ruby/library/mathn/mathn_spec.rb
new file mode 100644
index 0000000000..aedf88ea7b
--- /dev/null
+++ b/spec/ruby/library/mathn/mathn_spec.rb
@@ -0,0 +1,9 @@
+require File.expand_path('../../../spec_helper', __FILE__)
+
+describe "mathn" do
+ ruby_version_is "2.5" do
+ it "is no longer part of the standard library" do
+ -> { require "mathn" }.should raise_error(LoadError)
+ end
+ end
+end