-
-
Save Nklya/d70ff7c6d1c02de8f18bcd049e904942 to your computer and use it in GitHub Desktop.
hw19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_relative './app' | |
require 'test/unit' | |
require 'rack/test' | |
set :environment, :test | |
class MyAppTest < Test::Unit::TestCase | |
include Rack::Test::Methods | |
def app | |
Sinatra::Application | |
end | |
def test_get_request | |
get '/' | |
assert last_response.ok? | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment