Finished phase005
CI / scan_ruby (push) Failing after 1m5s
CI / scan_js (push) Failing after 6s
CI / lint (push) Failing after 1m29s

This commit is contained in:
2026-09-16 15:34:50 -06:00
parent a3a65c24ed
commit 0826d267f2
38 changed files with 1596 additions and 9 deletions
+9 -2
View File
@@ -2,11 +2,13 @@ require "rails_helper"
RSpec.describe "Home" do
describe "GET /" do
it "returns a successful response" do
before { identify_user }
it "returns the vehicle index" do
get root_path
expect(response).to have_http_status(:ok)
expect(response.body).to include("Car Tracker")
expect(response.body).to include("Vehicles")
expect(response.body).to include("stylesheet")
expect(response.body).to include("importmap")
end
@@ -24,4 +26,9 @@ RSpec.describe "Home" do
Rails.application.config.instance_variable_set(:@content_security_policy, original_policy)
end
end
def identify_user(user = create(:user))
access_key = AccessKey.current
post session_path, params: { name: user.name, email: user.email, key: access_key.raw_key }
end
end