Methods
T
Constants
BLANK = [ EmptyTrue.new, nil, false, '', ' ', " \n\t \r ", [], {} ]
 
NOT_BLANK = [ EmptyFalse.new, Object.new, true, 0, 1, 'x', [nil], { nil => 0 } ]
 
Instance Public methods
test_assert_blank_false()
# File activesupport/test/test_test.rb, line 116
def test_assert_blank_false
  BLANK.each { |v|
    begin
      assert_present v
      fail 'should not get to here'
    rescue Exception => e
      assert_match(/is blank/, e.message)
    end
  }
end
test_assert_blank_true()
# File activesupport/test/test_test.rb, line 112
def test_assert_blank_true
  NOT_BLANK.each { |v| assert_present v }
end