Class: Cucumber::Filters::GatedReceiver
- Inherits:
-
Object
- Object
- Cucumber::Filters::GatedReceiver
- Defined in:
- lib/cucumber/filters/gated_receiver.rb
Instance Method Summary collapse
- #done ⇒ Object
-
#initialize(receiver) ⇒ GatedReceiver
constructor
A new instance of GatedReceiver.
- #test_case(test_case) ⇒ Object
Constructor Details
#initialize(receiver) ⇒ GatedReceiver
Returns a new instance of GatedReceiver.
6 7 8 9 |
# File 'lib/cucumber/filters/gated_receiver.rb', line 6 def initialize(receiver) @receiver = receiver @test_cases = [] end |
Instance Method Details
#done ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/cucumber/filters/gated_receiver.rb', line 16 def done @test_cases.map do |test_case| test_case.describe_to(@receiver) end @receiver.done self end |
#test_case(test_case) ⇒ Object
11 12 13 14 |
# File 'lib/cucumber/filters/gated_receiver.rb', line 11 def test_case(test_case) @test_cases << test_case self end |