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.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/ruby/library/mathn/mathn_spec.rb b/spec/ruby/library/mathn/mathn_spec.rb
index c9e8c05a8d..129c8f3288 100644
--- a/spec/ruby/library/mathn/mathn_spec.rb
+++ b/spec/ruby/library/mathn/mathn_spec.rb
@@ -3,7 +3,11 @@ require_relative '../../spec_helper'
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)
+ -> {
+ require "mathn"
+ }.should raise_error(LoadError) { |e|
+ e.path.should == 'mathn'
+ }
end
end
end