Class: Bacon::Context

Inherits:
Object
  • Object
show all
Includes:
Mocha::API
Defined in:
lib/baconmocha.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, &block) ⇒ Context

Returns a new instance of Context.



15
16
17
18
19
20
21
22
# File 'lib/baconmocha.rb', line 15

def initialize(name, &block)
  @name = name
  @before, @after = [
    [lambda { mocha_setup }],
    [lambda { mocha_verify ; mocha_teardown }]
  ]
  @block = block
end

Instance Method Details

#xit(desc, &bk) ⇒ Object



24
25
# File 'lib/baconmocha.rb', line 24

def xit(desc, &bk)
end