Sha256: f0f0189b00e72a299d339394be0d72c661a4761557683762ac127e5d03dbe6d3

Contents?: true

Size: 488 Bytes

Versions: 2

Compression:

Stored size: 488 Bytes

Contents

require File.expand_path('../../../shared/rational/divide', __FILE__)

ruby_version_is ""..."1.9" do
  describe "Rational#/" do
    it_behaves_like(:rational_divide, :/)
  end

  describe "Rational#/ when passed an Integer" do
    it_behaves_like(:rational_divide_int, :/)
  end

  describe "Rational#/ when passed a Rational" do
    it_behaves_like(:rational_divide_rat, :/)
  end

  describe "Rational#/ when passed a Float" do
    it_behaves_like(:rational_divide_float, :/)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubysl-rational-2.0.1 spec/divide_spec.rb
rubysl-rational-1.0.0 spec/divide_spec.rb