Sha256: 0d92eb4840be1cec9a6825604fff2c3053bedf0f90e9b191f39bc211b8554a07

Contents?: true

Size: 278 Bytes

Versions: 10

Compression:

Stored size: 278 Bytes

Contents

# encoding: utf-8

module HasMockCallbackConnection
  def self.included(test_case)
    test_case.let(:connection) do
      mock('Connection').tap do |mc|
        mc.stub :handle_event do |event|
          original_command.add_event event
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
punchblock-1.9.4 spec/support/mock_connection_with_event_handler.rb
punchblock-1.9.3 spec/support/mock_connection_with_event_handler.rb
punchblock-1.9.2 spec/support/mock_connection_with_event_handler.rb
punchblock-1.9.1 spec/support/mock_connection_with_event_handler.rb
punchblock-1.9.0 spec/support/mock_connection_with_event_handler.rb
punchblock-1.8.2 spec/support/mock_connection_with_event_handler.rb
punchblock-1.8.1 spec/support/mock_connection_with_event_handler.rb
punchblock-1.8.0 spec/support/mock_connection_with_event_handler.rb
punchblock-1.7.1 spec/support/mock_connection_with_event_handler.rb
punchblock-1.7.0 spec/support/mock_connection_with_event_handler.rb