Sha256: 9b1ed19f8b87f8b9bbdc715c276d822dce512256e3d4d0308bc9dedf4ff08e2d

Contents?: true

Size: 598 Bytes

Versions: 41

Compression:

Stored size: 598 Bytes

Contents

require 'test_helper'

# This tests our Nil extension
class NilTest < Minitest::Test
  test 'to_date' do
    assert_nil nil.to_date
  end

  test 'titleize' do
    assert_nil nil.titleize
  end

  test 'surnameize' do
    assert_nil nil.surnameize
  end

  test 'postcodeize' do
    assert_nil nil.postcodeize
  end

  test 'upcase' do
    assert_nil nil.upcase
  end

  test 'clean' do
    assert_nil nil.clean(:tnmcategory)
  end

  test 'squash' do
    assert_nil nil.squash
  end

  test 'gsub' do
    assert_equal '', nil.gsub(/.*/)
  end

  test 'strip' do
    assert_nil nil.strip
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
ndr_support-5.6.1 test/nil_test.rb
ndr_support-5.6.0 test/nil_test.rb
ndr_support-5.5.1 test/nil_test.rb
ndr_support-5.5.0 test/nil_test.rb
ndr_support-5.4.2 test/nil_test.rb
ndr_support-5.4.1 test/nil_test.rb
ndr_support-5.3.2 test/nil_test.rb
ndr_support-5.3.1 test/nil_test.rb
ndr_support-5.3.0 test/nil_test.rb
ndr_support-5.2.0 test/nil_test.rb
ndr_support-5.1.0 test/nil_test.rb
ndr_support-4.2.0 test/nil_test.rb
ndr_support-5.0.0 test/nil_test.rb
ndr_support-4.1.2 test/nil_test.rb
ndr_support-4.1.1 test/nil_test.rb
ndr_support-4.0.1 test/nil_test.rb
ndr_support-4.0.0 test/nil_test.rb
ndr_support-3.3.0 test/nil_test.rb
ndr_support-3.2.1 test/nil_test.rb
ndr_support-3.2.0 test/nil_test.rb