Sha256: e923a7836368e9c0fc23857e37d8a1501b0a0d6e2447d16c5d4a672fa8b60cf3

Contents?: true

Size: 307 Bytes

Versions: 61

Compression:

Stored size: 307 Bytes

Contents

require File.dirname(__FILE__) + '/../abstract_unit'

class BlankTest < Test::Unit::TestCase
  BLANK = [nil, false, '', '   ', "  \n\t  \r ", [], {}]
  NOT   = [true, 0, 1, 'a', [nil], { nil => 0 }]

  def test_blank
    BLANK.each { |v| assert v.blank?  }
    NOT.each   { |v| assert !v.blank? }
  end
end

Version data entries

61 entries across 61 versions & 2 rubygems

Version Path
backlog-0.5.0 vendor/rails/activesupport/test/core_ext/blank_test.rb
backlog-0.4.0 vendor/rails/activesupport/test/core_ext/blank_test.rb
backlog-0.5.1 vendor/rails/activesupport/test/core_ext/blank_test.rb
backlog-0.5.10 vendor/rails/activesupport/test/core_ext/blank_test.rb
backlog-0.5.2 vendor/rails/activesupport/test/core_ext/blank_test.rb
backlog-0.5.4 vendor/rails/activesupport/test/core_ext/blank_test.rb
backlog-0.5.3 vendor/rails/activesupport/test/core_ext/blank_test.rb
backlog-0.5.5 vendor/rails/activesupport/test/core_ext/blank_test.rb
backlog-0.5.6 vendor/rails/activesupport/test/core_ext/blank_test.rb
backlog-0.5.7 vendor/rails/activesupport/test/core_ext/blank_test.rb
backlog-0.5.8 vendor/rails/activesupport/test/core_ext/blank_test.rb
backlog-0.5.9 vendor/rails/activesupport/test/core_ext/blank_test.rb
backlog-0.6.2 vendor/rails/activesupport/test/core_ext/blank_test.rb
backlog-0.6.1 vendor/rails/activesupport/test/core_ext/blank_test.rb
backlog-0.6.0 vendor/rails/activesupport/test/core_ext/blank_test.rb
backlog-0.6.4 vendor/rails/activesupport/test/core_ext/blank_test.rb
backlog-0.6.5 vendor/rails/activesupport/test/core_ext/blank_test.rb
backlog-0.6.3 vendor/rails/activesupport/test/core_ext/blank_test.rb
backlog-0.6.6 vendor/rails/activesupport/test/core_ext/blank_test.rb
backlog-0.7.0 vendor/rails/activesupport/test/core_ext/blank_test.rb