class TestUrls::Test

Public Class Methods

new() click to toggle source
# File lib/test_urls/test.rb, line 7
def initialize
  @host_url = "http://0.0.0.0:3000"
  @routes = TestUrls::Url.new.routes
  TestUrls::PrepareDb.new.prepare
  @url_states = {}
end

Public Instance Methods

run_test() click to toggle source
# File lib/test_urls/test.rb, line 14
def run_test
  @routes.each do |route|
    @url_states[route] = HTTParty.get("#{@host_url}#{route}").response.code
  end
  @url_states
end