Sha256: 6b7dd8c9ae4cb63b84440a1e28abf1dab6f46c95c2d41a320026f7a549ceba64

Contents?: true

Size: 206 Bytes

Versions: 7

Compression:

Stored size: 206 Bytes

Contents

module MockPingMixin
  require 'net/ping'

  def mock_ping
    allow_any_instance_of(Net::Ping::External).to receive(:ping?).
                                                   and_return(true)

  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
consolr-1.1.5 spec/mocks/ping.rb
consolr-1.1.4 spec/mocks/ping.rb
consolr-1.1.1 spec/mocks/ping.rb
consolr-1.1.0 spec/mocks/ping.rb
consolr-1.1.3 spec/mocks/ping.rb
consolr-1.1.2 spec/mocks/ping.rb
consolr-1.0.2 spec/mocks/ping.rb