Added rspec testing. It should work, but doesn't for unknown reasons

This commit is contained in:
Gregory Ballantine
2025-08-12 15:35:46 -04:00
parent e1f5bd3950
commit 260d0d1268
5 changed files with 58 additions and 0 deletions

17
spec/spec_helper.rb Normal file
View File

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