aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/rational/equal_value_spec.rb
blob: 708eccf6d172af0ea3d84f88f58d646b8358eeea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require File.expand_path('../../../shared/rational/equal_value', __FILE__)

describe "Rational#==" do
  it_behaves_like(:rational_equal_value, :==)
end

describe "Rational#== when passed a Rational" do
  it_behaves_like(:rational_equal_value_rat, :==)
end

describe "Rational#== when passed a Float" do
  it_behaves_like(:rational_equal_value_float, :==)
end

describe "Rational#== when passed an Integer" do
  it_behaves_like(:rational_equal_value_int, :==)
end