Module: Rook::Assertion

Included in:
Cookbook, Kitchen, Oven, Recipe
Defined in:
lib/rook.rb

Instance Method Summary collapse

Instance Method Details

#assert(expr, message) ⇒ Object

Raises:



37
38
39
# File 'lib/rook.rb', line 37

def assert(expr, message)
  raise AssertionError.new(message) unless expr
end

#assert_failed(message) ⇒ Object Also known as: assert!

Raises:



40
41
42
# File 'lib/rook.rb', line 40

def assert_failed(message)
  raise AssertionError.new(message)
end