summaryrefslogtreecommitdiff
path: root/spec/ruby/shared/rational/inspect.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/shared/rational/inspect.rb')
-rw-r--r--spec/ruby/shared/rational/inspect.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/spec/ruby/shared/rational/inspect.rb b/spec/ruby/shared/rational/inspect.rb
deleted file mode 100644
index 19691a2f25..0000000000
--- a/spec/ruby/shared/rational/inspect.rb
+++ /dev/null
@@ -1,14 +0,0 @@
-require_relative '../../spec_helper'
-
-describe :rational_inspect, shared: true do
- it "returns a string representation of self" do
- Rational(3, 4).inspect.should == "(3/4)"
- Rational(-5, 8).inspect.should == "(-5/8)"
- Rational(-1, -2).inspect.should == "(1/2)"
-
- # Guard against the Mathn library
- guard -> { !defined?(Math.rsqrt) } do
- Rational(bignum_value, 1).inspect.should == "(#{bignum_value}/1)"
- end
- end
-end