Module: Assert::Mocha

Defined in:
lib/assert-mocha/version.rb,
lib/assert-mocha.rb

Defined Under Namespace

Modules: Assertions

Constant Summary collapse

VERSION =
"1.1.1"

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/assert-mocha.rb', line 7

def self.included(klass)
  klass.class_eval do
    include ::Mocha::API
    include Assertions

    setup do
      mocha_setup
    end
    teardown do
      mocha_teardown
    end

  end
end