Class: ReportAPISpy
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/spec/report_api_spy.rb
Instance Method Summary collapse
- #done(*args) {|_self| ... } ⇒ Object
-
#initialize ⇒ ReportAPISpy
constructor
A new instance of ReportAPISpy.
- #messages ⇒ Object
- #test_case(*args) {|_self| ... } ⇒ Object
- #test_step(*args) {|_self| ... } ⇒ Object
Constructor Details
#initialize ⇒ ReportAPISpy
Returns a new instance of ReportAPISpy.
3 4 5 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/spec/report_api_spy.rb', line 3 def initialize @result = [] end |
Instance Method Details
#done(*args) {|_self| ... } ⇒ Object
17 18 19 20 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/spec/report_api_spy.rb', line 17 def done(*args) @result << [:done, *args] yield self if block_given? end |
#messages ⇒ Object
22 23 24 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/spec/report_api_spy.rb', line 22 def @result.map(&:first) end |
#test_case(*args) {|_self| ... } ⇒ Object
7 8 9 10 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/spec/report_api_spy.rb', line 7 def test_case(*args) @result << [:test_case, *args] yield self if block_given? end |
#test_step(*args) {|_self| ... } ⇒ Object
12 13 14 15 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/spec/report_api_spy.rb', line 12 def test_step(*args) @result << [:test_step, *args] yield self if block_given? end |