Class: Cucumber::Filters::TagLimits
- Inherits:
-
Object
- Object
- Cucumber::Filters::TagLimits
show all
- Defined in:
- lib/cucumber/filters/tag_limits.rb,
lib/cucumber/filters/tag_limits/verifier.rb,
lib/cucumber/filters/tag_limits/test_case_index.rb
Defined Under Namespace
Classes: TestCaseIndex, Verifier
Instance Method Summary
collapse
Constructor Details
#initialize(tag_limits, receiver = nil) ⇒ TagLimits
Returns a new instance of TagLimits.
16
17
18
19
20
21
|
# File 'lib/cucumber/filters/tag_limits.rb', line 16
def initialize(tag_limits, receiver = nil)
@tag_limits = tag_limits
@gated_receiver = GatedReceiver.new(receiver)
@test_case_index = TestCaseIndex.new
@verifier = Verifier.new(@tag_limits)
end
|
Instance Method Details
#done ⇒ Object
29
30
31
32
33
|
# File 'lib/cucumber/filters/tag_limits.rb', line 29
def done
verifier.verify!(test_case_index)
gated_receiver.done
self
end
|
#test_case(test_case) ⇒ Object
23
24
25
26
27
|
# File 'lib/cucumber/filters/tag_limits.rb', line 23
def test_case(test_case)
gated_receiver.test_case(test_case)
test_case_index.add(test_case)
self
end
|
#with_receiver(receiver) ⇒ Object
35
36
37
|
# File 'lib/cucumber/filters/tag_limits.rb', line 35
def with_receiver(receiver)
self.class.new(@tag_limits, receiver)
end
|