Module: Tap::Test::TapTest
- Defined in:
- lib/tap/test/tap_test.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
The test specific app.
Instance Method Summary collapse
Instance Attribute Details
#app ⇒ Object (readonly)
The test specific app
9 10 11 |
# File 'lib/tap/test/tap_test.rb', line 9 def app @app end |
Instance Method Details
#setup ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/tap/test/tap_test.rb', line 11 def setup super @app = Tap::App.new({:debug => true}, {:env => Env.new}) @context = Tap::App.set_context(Tap::App::CURRENT => @app) @desc = nil @baseclass = '/tap/task' @namespace = self.class end |
#signal(sig, args = [], &block) ⇒ Object
25 26 27 |
# File 'lib/tap/test/tap_test.rb', line 25 def signal(sig, args=[], &block) app.call({'sig' => sig, 'args' => args}, &block) end |
#teardown ⇒ Object
20 21 22 23 |
# File 'lib/tap/test/tap_test.rb', line 20 def teardown Tap::App.set_context(@context) super end |