test/sinatra-subdomain/subdomains_test.rb in sinatra-subdomain-0.3.0 vs test/sinatra-subdomain/subdomains_test.rb in sinatra-subdomain-0.4.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + require "test_helper" class SubdomainsTest < Minitest::Test def app App @@ -29,7 +31,14 @@ test "renders matched subdomain (d)" do header "HOST", "d.example.com" get "/" assert_equal "regex: d", last_response.body + end + + test "renders matched subdomain (e)" do + header "HOST", "e.example.com" + get "/" + + assert_equal "proc: e", last_response.body end end