Sha256: f6e05a1bd5a831cb69352b5d3be4b17d0af90dffcb8621d9f3a1f1ef5944d454

Contents?: true

Size: 357 Bytes

Versions: 110

Compression:

Stored size: 357 Bytes

Contents

require "socket"

# Stub out the hostname for tests only. This can't use a normal stub in the
# test life cycle since our test rails app is loaded once upon initialization.
# In other words, the rails app gets loaded with the server context inserted
# before any tests are run.

class ::Socket
  def self.gethostname
    "computer-name.domain.com"
  end
end

Version data entries

110 entries across 110 versions & 4 rubygems

Version Path
logtail-0.1.15 spec/support/socket_hostname.rb
logtail-0.1.14 spec/support/socket_hostname.rb
logtail-ruby-0.1.3 spec/support/socket_hostname.rb
logtail-0.1.13 spec/support/socket_hostname.rb
logtail-0.1.12 spec/support/socket_hostname.rb
logtail-0.1.11 spec/support/socket_hostname.rb
logtail-0.1.10 spec/support/socket_hostname.rb
logtail-0.1.9 spec/support/socket_hostname.rb
logtail-0.1.8 spec/support/socket_hostname.rb
logtail-0.1.7 spec/support/socket_hostname.rb
logtail-0.1.6 spec/support/socket_hostname.rb
logtail-0.1.5 spec/support/socket_hostname.rb
logtail-0.1.4 spec/support/socket_hostname.rb
logtail-0.1.3 spec/support/socket_hostname.rb
logtail-0.1.2 spec/support/socket_hostname.rb
logtail-0.1.1 spec/support/socket_hostname.rb
logtail-0.1.0 spec/support/socket_hostname.rb
logtail-ruby-0.1.2 spec/support/socket_hostname.rb
logtail-ruby-0.1.1 spec/support/socket_hostname.rb
logtail-ruby-0.1.0 spec/support/socket_hostname.rb