Module: Kookaburra::TestHelpers
- Extended by:
- Forwardable
- Defined in:
- lib/kookaburra/test_helpers.rb
Overview
This module is intended to be mixed in to your testing context to provide convenient access to your Kookaburra objects. Examples for both RSpec and Cucumber are given below; mixing it in to other test setups should be pretty straight-forward.
Instance Method Summary collapse
-
#api ⇒ Object
Delegates to #k.
-
#k ⇒ Kookaburra
The Kookaburra instance to be used by your tests.
-
#ui ⇒ Object
Delegates to #k.
Instance Method Details
#api ⇒ Object
Delegates to #k
96 |
# File 'lib/kookaburra/test_helpers.rb', line 96 def_delegator :k, :api |
#k ⇒ Kookaburra
The Kookaburra instance to be used by your tests. It gets configured using the options set in Kookaburra.configuration, and the result is memoized.
90 91 92 |
# File 'lib/kookaburra/test_helpers.rb', line 90 def k @k ||= Kookaburra.new end |
#ui ⇒ Object
Delegates to #k
100 |
# File 'lib/kookaburra/test_helpers.rb', line 100 def_delegator :k, :ui |