Module: BarsoomUtils::Spec::DebugHelpers

Defined in:
lib/barsoom_utils/spec/debug_helpers.rb

Instance Method Summary collapse

Instance Method Details

#hostnameObject



13
14
15
# File 'lib/barsoom_utils/spec/debug_helpers.rb', line 13

def hostname
  raise "Implement me. Ex: def hostname; \"auctionet.dev\"; end"
end

#show_pageObject



7
8
9
10
11
# File 'lib/barsoom_utils/spec/debug_helpers.rb', line 7

def show_page
  path = Rails.root.join("public/show_page.html")
  File.write(path, page.source)
  Lol.println "show_page: http://#{hostname}/show_page.html", os: 10, freq: 0.1, spread: 1
end