puzzle-scoreboard/spec/features/contest_spec.rb
sto 7023600cd1
All checks were successful
CI / scan_ruby (push) Successful in 20s
CI / scan_js (push) Successful in 11s
CI / lint (push) Successful in 11s
CI / test (push) Successful in 33s
Setup Faker and Factorybot
2025-03-27 09:27:25 +01:00

21 lines
442 B
Ruby

require 'rails_helper'
RSpec.feature "Contests", type: :feature do
context "visiting the home page" do
let!(:user) { create(:user) }
before do
visit '/'
fill_in "Email address", with: user.email_address
fill_in "Password", with: user.password
click_button "Sign in"
end
it "should display the username" do
visit root_path
expect(page).to have_content(user.username)
end
end
end