Sha256: 78352949feb9d79a1069e2c4b520ae6807d0a5dc69afbb0a65061d3adac8abe7

Contents?: true

Size: 429 Bytes

Versions: 8

Compression:

Stored size: 429 Bytes

Contents

# frozen_string_literal: true

RSpec.shared_context "anycable:rpc:command" do
  include_context "anycable:rpc:stub"

  let(:command) { "" }
  let(:channel_id) { "" }
  let(:identifiers) { {} }
  let(:data) { {} }

  let(:request) do
    AnyCable::CommandMessage.new(
      command: command,
      identifier: channel_id,
      connection_identifiers: identifiers.to_json,
      data: data.to_json,
      env: env
    )
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
anycable-1.0.3 lib/anycable/rspec/rpc_command_context.rb
anycable-1.0.2 lib/anycable/rspec/rpc_command_context.rb
anycable-1.0.1 lib/anycable/rspec/rpc_command_context.rb
anycable-1.0.0 lib/anycable/rspec/rpc_command_context.rb
anycable-1.0.0.rc2 lib/anycable/rspec/rpc_command_context.rb
anycable-1.0.0.rc1 lib/anycable/rspec/rpc_command_context.rb
anycable-1.0.0.preview2 lib/anycable/rspec/rpc_command_context.rb
anycable-1.0.0.preview1 lib/anycable/rspec/rpc_command_context.rb