Sha256: 42d4cf749018e9b3232c6058c03403161415e815d12d0ea98124be16645c63ed

Contents?: true

Size: 402 Bytes

Versions: 1

Compression:

Stored size: 402 Bytes

Contents

# frozen_string_literal: true

require "test_helper"

class IpAddressTest < Minitest::Test
  def app
    App
  end

  test "renders no subdomain root page" do
    header "HOST", "127.0.0.1"
    get "/"

    assert_equal "root", last_response.body
  end

  test "renders no subdomain about page" do
    header "HOST", "127.0.0.1"
    get "/about"

    assert_equal "about", last_response.body
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sinatra-subdomain-0.4.0 test/sinatra-subdomain/ip_address_test.rb