Mixin intended for Bacon::Context so that it runs spec_verify on all mocks after each example.
# File lib/facon/baconize.rb, line 53 def it_with_mock_verification(description, &block) @before.unshift(proc { setup_facon_mocks }) @after << proc { verify_facon_mocks } it_without_mock_verification(description, &block) ensure teardown_facon_mocks end
# File lib/facon/baconize.rb, line 40 def setup_facon_mocks $facon_mocks ||= [] end
Generated with the Darkfish Rdoc Generator 2.