summaryrefslogtreecommitdiff
path: root/spec/ruby/library/mathn/mathn_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/mathn/mathn_spec.rb')
-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