toy/app_test.rb
Ryan Cavicchioni 9fab7393f7
All checks were successful
Gitea Actions Demo / lint (push) Successful in 1m19s
Gitea Actions Demo / test (push) Successful in 1m22s
Gitea Actions Demo / release-image (push) Successful in 1m0s
Fix lint errors
2024-07-07 16:26:38 -05:00

20 lines
313 B
Ruby

ENV["APP_ENV"] = "test"
require "./app"
require "test/unit"
require "rack/test"
class ToyTest < Test::Unit::TestCase
include Rack::Test::Methods
def app
Sinatra::Application
end
def test_root
get "/"
assert last_response.ok?
assert_equal "hello there!\n", last_response.body
end
end