Sha256: e892eba0439fe8400868d241f70625e858b84489b8ab0797b3243fd3fe95e0a9

Contents?: true

Size: 280 Bytes

Versions: 17

Compression:

Stored size: 280 Bytes

Contents

# encoding: utf-8

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
punchblock-2.5.2 spec/support/mock_connection_with_event_handler.rb
punchblock-2.5.1 spec/support/mock_connection_with_event_handler.rb
punchblock-2.5.0 spec/support/mock_connection_with_event_handler.rb
punchblock-2.4.2 spec/support/mock_connection_with_event_handler.rb
punchblock-2.4.0 spec/support/mock_connection_with_event_handler.rb
punchblock-2.3.1 spec/support/mock_connection_with_event_handler.rb
punchblock-2.3.0 spec/support/mock_connection_with_event_handler.rb
punchblock-2.2.2 spec/support/mock_connection_with_event_handler.rb
punchblock-2.2.1 spec/support/mock_connection_with_event_handler.rb
punchblock-2.2.0 spec/support/mock_connection_with_event_handler.rb
punchblock-2.1.1 spec/support/mock_connection_with_event_handler.rb
punchblock-2.1.0 spec/support/mock_connection_with_event_handler.rb
punchblock-2.0.2 spec/support/mock_connection_with_event_handler.rb
punchblock-2.0.1 spec/support/mock_connection_with_event_handler.rb
punchblock-2.0.0 spec/support/mock_connection_with_event_handler.rb
punchblock-2.0.0.beta2 spec/support/mock_connection_with_event_handler.rb
punchblock-2.0.0.beta1 spec/support/mock_connection_with_event_handler.rb