Sha256: 0c6dd2646f889c610f3aebe28f4ca8d638baa09c0537b85945befe7734af6d69

Contents?: true

Size: 320 Bytes

Versions: 3

Compression:

Stored size: 320 Bytes

Contents

# Test for facets/string/blank.rb

require 'facets/string/blank.rb'

require 'test/unit'

class TestStringBlank < Test::Unit::TestCase

  def test_blank?
    assert( ! "xyz".blank? )
    assert( "     ".blank? )
  end

  def test_whitespace?
    assert( ! "xyz".whitespace? )
    assert( "     ".whitespace? )
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
facets-2.3.0 test/core/string/test_blank.rb
facets-2.2.1 test/unit/string/test_blank.rb
facets-2.2.0 test/unit/string/test_blank.rb