Class: TestObjectMethods

Inherits:
Minitest::Test
  • Object
show all
Defined in:
lib/object_present.rb

Instance Method Summary collapse

Instance Method Details

#test_presentObject



70
71
72
73
74
75
76
77
78
# File 'lib/object_present.rb', line 70

def test_present
  assert 'foo'.present?
  refute ''.present?
  assert Object.new.present?
  assert 123.present?
  assert true.present?
  assert false.present?
  refute nil.present?
end