Sha256: 8884c764eab1b83b066b7241ad59f89575929dce1bed45df05b379d63d0a5f40

Contents?: true

Size: 644 Bytes

Versions: 3

Compression:

Stored size: 644 Bytes

Contents

require 'mocha/integration/bacon/assertion_counter'

module Mocha

  module Integration

    module Bacon

      module Version11AndAbove

        def self.included(base)

          base.class_eval do
            alias :it_before_bacon :it
            def it(description)
              it_before_bacon(description) do
                assertion_counter = ::Mocha::Integration::Bacon::AssertionCounter.new(::Bacon::Counter)
                mocha_setup
                yield
                mocha_verify(assertion_counter)
                mocha_teardown
              end
            end
          end

        end

      end

    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jferris-mocha-0.9.5.0.1240002286 lib/mocha/integration/bacon/version_11_and_above.rb
jferris-mocha-0.9.5.0.1240351621 lib/mocha/integration/bacon/version_11_and_above.rb
jferris-mocha-0.9.5.0.1241126838 lib/mocha/integration/bacon/version_11_and_above.rb