Sha256: 371cb84272b3bc26fdc8bdb2371a9602b594e5f9e30083c5e006ba0142101c06

Contents?: true

Size: 456 Bytes

Versions: 2

Compression:

Stored size: 456 Bytes

Contents

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

ruby_version_is ""..."1.9" do
  describe "Rational#+" do
    it_behaves_like(:rational_plus, :+)
  end

  describe "Rational#+ with a Rational" do
    it_behaves_like(:rational_plus_rat, :+)
  end
  describe "Rational#+ with a Float" do
    it_behaves_like(:rational_plus_float, :+)
  end

  describe "Rational#+ with an Integer" do
    it_behaves_like(:rational_plus_int, :+)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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