diff options
Diffstat (limited to 'spec/ruby/shared/rational/Rational.rb')
-rw-r--r-- | spec/ruby/shared/rational/Rational.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/shared/rational/Rational.rb b/spec/ruby/shared/rational/Rational.rb index 68f0150186..752225269e 100644 --- a/spec/ruby/shared/rational/Rational.rb +++ b/spec/ruby/shared/rational/Rational.rb @@ -4,7 +4,7 @@ require_relative '../../fixtures/rational' describe :kernel_Rational, shared: true do describe "passed Integer" do # Guard against the Mathn library - conflicts_with :Prime do + guard -> { !defined?(Math.rsqrt) } do it "returns a new Rational number with 1 as the denominator" do Rational(1).should eql(Rational(1, 1)) Rational(-3).should eql(Rational(-3, 1)) |