Set up RSpec test framework

- Add rspec-rails to the development/test group
- Generate RSpec config (.rspec, spec_helper, rails_helper)
- Add home page request spec as a smoke test
- Stop ignoring .rspec so test config is tracked
This commit is contained in:
2026-06-07 20:07:31 -03:00
parent 6747d5ece7
commit 1a1308e0fc
7 changed files with 201 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
require "rails_helper"
RSpec.describe "Pages", type: :request do
describe "GET /" do
it "renders the home page" do
get root_path
expect(response).to have_http_status(:ok)
expect(response.body).to include("Characterization Tool for Git Workflows")
end
end
end