Module: EvelpidonTestHelpers::Boolean

Included in:
ActiveSupport::TestCase
Defined in:
lib/evelpidon_test_helpers/boolean.rb

Instance Method Summary collapse

Instance Method Details

#assert_kind_of_boolean(expected) ⇒ Object

Asserts that the given value is a boolean.



4
5
6
# File 'lib/evelpidon_test_helpers/boolean.rb', line 4

def assert_kind_of_boolean(expected)
  assert expected == true || expected == false, "#{expected} expected to be a boolean"
end