Changed naming from Routes to Controllers; fixed some Sinatra modular layout stuff; added RSpec for testing and some basic tests
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Gregory Ballantine
2025-08-12 16:15:43 -04:00
parent 260d0d1268
commit 40cfdcc2a3
18 changed files with 105 additions and 83 deletions

View File

@@ -1,17 +1,21 @@
# frozen_string_literal: true
ENV['APP_ENV'] = 'test'
require_relative '../src/app'
require_relative '../src/server'
require 'rspec'
require 'rack/test'
module RSpecMixin
include Rack::Test::Methods
def app
GameData
end
end
RSpec.configure do |config|
config.include RSpecMixin
config.include(RSpecMixin)
end