Allinea le spec alla policy password e prepara i piani di test.

Senza questo la suite locale fallisce sulla complessità password e sui piani mancanti.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-18 23:20:31 +02:00
co-authored by Cursor
parent 841a6a15be
commit 1e4e0560f1
29 changed files with 41 additions and 33 deletions
@@ -2,7 +2,7 @@ require "rails_helper"
RSpec.describe "Public club billing", type: :request do
let!(:coach) do
User.create!(email: "billing-coach@test.it", name: "Coach", password: "password123", role: "coach")
User.create!(email: "billing-coach@test.it", name: "Coach", password: "Password123", role: "coach")
end
let!(:club) do
c = Club.create!(name: "Billing HTTP Club", sport: "volleyball", primary_color: "#e53935", secondary_color: "#ffffff",
@@ -17,7 +17,7 @@ RSpec.describe "Public club billing", type: :request do
end
def login!
post public_login_path, params: { email: coach.email, password: "password123" }
post public_login_path, params: { email: coach.email, password: "Password123" }
end
it "mostra pagamenti e fatture in billing" do