Sha256: b630ae6659e9e24b885e39daab276ab7b5e363577e0dbbb18a975b8ebe6eb606

Contents?: true

Size: 352 Bytes

Versions: 2

Compression:

Stored size: 352 Bytes

Contents

$:.unshift(File.dirname(__FILE__))
$:.unshift(File.dirname(__FILE__) + "/.." + "/lib")

require 'helper'

class ObjectTest < Test::Unit::TestCase

  def test_blank
    assert "         ".blank?
    assert nil.blank?
    assert [].blank?
    assert ({ }.blank?)
    assert !{ :a => 1}.blank?
    assert !"   dd".blank?
    assert ![1].blank?
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
magpie-0.8.8.1 test/test_object.rb
magpie-0.8.8 test/test_object.rb