Module: Matahari::Adapters::TestUnit

Includes:
MatahariMethods
Defined in:
lib/matahari/adapters/test_unit.rb

Instance Method Summary collapse

Methods included from MatahariMethods

#spy

Instance Method Details

#assert_not_received(subject, &block) ⇒ Object



11
12
13
14
# File 'lib/matahari/adapters/test_unit.rb', line 11

def assert_not_received(subject, &block)
  result = block.call
  assert !result.matches?(subject), result.failure_message_for_should_not
end

#assert_received(subject, &block) ⇒ Object



6
7
8
9
# File 'lib/matahari/adapters/test_unit.rb', line 6

def assert_received(subject, &block)
  result = block.call
  assert result.matches?(subject), result.failure_message_for_should
end