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.10.4 test/nil_test.rb
ndr_support-5.10.3 test/nil_test.rb
ndr_support-5.10.2 test/nil_test.rb
ndr_support-5.10.1 test/nil_test.rb
ndr_support-5.10.0 test/nil_test.rb
ndr_support-5.9.7 test/nil_test.rb
ndr_support-5.9.6 test/nil_test.rb
ndr_support-5.9.5 test/nil_test.rb
ndr_support-5.9.4 test/nil_test.rb
ndr_support-5.9.3 test/nil_test.rb
ndr_support-5.9.2 test/nil_test.rb
ndr_support-5.9.1 test/nil_test.rb
ndr_support-5.9.0 test/nil_test.rb
ndr_support-5.8.4 test/nil_test.rb
ndr_support-5.8.3 test/nil_test.rb
ndr_support-5.8.2 test/nil_test.rb
ndr_support-5.8.1 test/nil_test.rb
ndr_support-5.8.0 test/nil_test.rb
ndr_support-5.7.1 test/nil_test.rb
ndr_support-5.7.0 test/nil_test.rb