Switch to RSpec
All checks were successful
Gitea Actions Demo / lint (push) Successful in 1m21s
Gitea Actions Demo / test (push) Successful in 1m17s
Gitea Actions Demo / release-image (push) Successful in 59s

This commit is contained in:
2024-07-07 20:14:02 -05:00
parent 3b5e0f5c71
commit ca7d22374d
5 changed files with 38 additions and 25 deletions

21
spec/app_spec.rb Normal file
View File

@ -0,0 +1,21 @@
ENV["APP_ENV"] = "test"
require "./app"
require "rspec"
require "rack/test"
describe "Toy App" do
include Rack::Test::Methods
def app
Sinatra::Application
end
context "test /" do
it "test root route" do
get "/"
expect(last_response).to be_ok
expect(last_response.body).to eq("hello there!\n")
end
end
end