Sha256: 4eb26abb6b02f65e659b9fa26e2a8a58b9e8b56c8b48ea65fe49c48fc1fc8253

Contents?: true

Size: 1.05 KB

Versions: 2

Compression:

Stored size: 1.05 KB

Contents

require 'cucumber/wire/protocol/requests'

module Cucumber
  module Wire
    module Protocol
      def step_matches(name_to_match)
        handler = Requests::StepMatches.new(self)
        handler.execute(name_to_match)
      end

      def snippet_text(step_keyword, step_name, multiline_arg_class_name)
        handler = Requests::SnippetText.new(self)
        handler.execute(step_keyword, step_name, multiline_arg_class_name)
      end

      def invoke(step_definition_id, args)
        handler = Requests::Invoke.new(self)
        handler.execute(step_definition_id, args)
      end

      def diff_failed
        handler = Requests::DiffFailed.new(self)
        handler.execute
      end

      def diff_ok
        handler = Requests::DiffOk.new(self)
        handler.execute
      end

      def begin_scenario(scenario)
        handler = Requests::BeginScenario.new(self)
        handler.execute(scenario)
      end

      def end_scenario(scenario)
        handler = Requests::EndScenario.new(self)
        handler.execute(scenario)
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/cucumber-wire-0.0.1/lib/cucumber/wire/protocol.rb
cucumber-wire-0.0.1 lib/cucumber/wire/protocol.rb