Class: Bacon::Context
Instance Method Summary collapse
-
#initialize(name, &block) ⇒ Context
constructor
A new instance of Context.
- #xit(desc, &bk) ⇒ Object
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 |