Sha256: c8f3ff588207d03b6e8665bad40f058732050801a17b1da6dc82276c0564a76a

Contents?: true

Size: 516 Bytes

Versions: 8

Compression:

Stored size: 516 Bytes

Contents

require 'rubygems'
require 'require_relative' if RUBY_VERSION < '1.9'

require_relative '../../test_helper.rb'
require_relative File.join('..', '..', '..', 'lib', 'deltacloud', 'core_ext.rb')

class TestInteger < MiniTest::Unit::TestCase


  def test_ordinalize
    assert_equal true, 1.respond_to?(:"ordinalize")
    assert_equal '1st', 1.ordinalize
    assert_equal '2nd', 2.ordinalize
    assert_equal '3rd', 3.ordinalize
    assert_equal '6th', 6.ordinalize
    assert_equal '1211th', 1211.ordinalize
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
deltacloud-core-1.1.3 tests/helpers/core_ext/integer_test.rb
deltacloud-core-1.1.2 tests/helpers/core_ext/integer_test.rb
deltacloud-core-1.1.1 tests/helpers/core_ext/integer_test.rb
deltacloud-core-1.1.0 tests/helpers/core_ext/integer_test.rb
deltacloud-core-1.0.5 tests/helpers/core_ext/integer_test.rb
deltacloud-core-1.0.4 tests/helpers/core_ext/integer_test.rb
deltacloud-core-1.0.3 tests/helpers/core_ext/integer_test.rb
deltacloud-core-1.0.2 tests/helpers/core_ext/integer_test.rb