sto 26b8064553
All checks were successful
CI / scan_ruby (push) Successful in 15s
CI / scan_js (push) Successful in 12s
CI / lint (push) Successful in 12s
CI / test (push) Successful in 35s
Add login & user tests
2025-03-27 10:26:03 +01:00

18 lines
313 B
Ruby

require 'rails_helper'
RSpec.feature "Contests", type: :feature do
context "visiting the home page" do
let!(:user) { create(:user) }
before do
login(user)
end
it "should display the username" do
visit root_path
expect(page).to have_content(user.username)
end
end
end