Sha256: f3bc5d5b588864c27cb05d91ea880e4bf4cfccfb8efdf1ef6cccf39eba744ed5

Contents?: true

Size: 1.1 KB

Versions: 10

Compression:

Stored size: 1.1 KB

Contents

require 'lucid/wire_support/wire_protocol/requests'

module Lucid
  module WireSupport
    module WireProtocol
      def step_matches(name_to_match, name_to_report)
        handler = Requests::StepMatches.new(self)
        handler.execute(name_to_match, name_to_report)
      end

      def matcher_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

10 entries across 10 versions & 1 rubygems

Version Path
lucid-0.3.0 lib/lucid/wire_support/wire_protocol.rb
lucid-0.2.1 lib/lucid/wire_support/wire_protocol.rb
lucid-0.2.0 lib/lucid/wire_support/wire_protocol.rb
lucid-0.1.1 lib/lucid/wire_support/wire_protocol.rb
lucid-0.1.0 lib/lucid/wire_support/wire_protocol.rb
lucid-0.0.9 lib/lucid/wire_support/wire_protocol.rb
lucid-0.0.8 lib/lucid/wire_support/wire_protocol.rb
lucid-0.0.7 lib/lucid/wire_support/wire_protocol.rb
lucid-0.0.6 lib/lucid/wire_support/wire_protocol.rb
lucid-0.0.5 lib/lucid/wire_support/wire_protocol.rb