Module: Blank::Etest

Defined in:
lib/vex/boot/blank.rb

Instance Method Summary collapse

Instance Method Details

#test_blanksObject



31
32
33
34
35
36
37
38
39
# File 'lib/vex/boot/blank.rb', line 31

def test_blanks
  assert_equal true, nil.blank?
  assert_equal true, [].blank?
  assert_equal true, false.blank?
  assert_equal true, {}.blank?
  assert_equal true, "".blank?

  assert_equal false, 1.blank?
end