/vendor/gems/facets-2.4.5/test/more/test_blank.rb

https://bitbucket.org/mediashelf/fedora-migrator · Ruby · 12 lines · 8 code · 4 blank · 0 comment · 0 complexity · 940bc6ebb62ef3a8699c7706fe53f3e9 MD5 · raw file

  1. require 'facets/blank.rb'
  2. require 'test/unit'
  3. class TestStringBlank < Test::Unit::TestCase
  4. def test_blank?
  5. assert( ! "xyz".blank? )
  6. assert( " ".blank? )
  7. end
  8. end