File: report_api_spy.rb

package info (click to toggle)
ruby-cucumber-core 16.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 764 kB
  • sloc: ruby: 5,074; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 296 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# frozen_string_literal: true

class ReportAPISpy
  def initialize
    @result = []
  end

  def test_case(*_args)
    @result << :test_case
    yield self
  end

  def test_step(*_args)
    @result << :test_step
  end

  def done
    @result << :done
  end

  def messages
    @result
  end
end