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
+11 -3
View File
@@ -1,10 +1,18 @@
require "rails_helper"
RSpec.describe "Home" do
it "shows the placeholder landing page" do
it "shows the vehicle index" do
user = create(:user)
access_key = AccessKey.current
visit root_path
expect(page).to have_content("Car Tracker")
expect(page).to have_content("Vehicle maintenance and fuel tracking will be added here.")
fill_in "User name", with: user.name
fill_in "Email", with: user.email
fill_in "Access key", with: access_key.raw_key
click_on "Identify"
expect(page).to have_content("Vehicles")
expect(page).to have_link("New vehicle")
end
end