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
@@ -10,7 +10,7 @@ RSpec.describe Teams::Entitlements do
end
it "limits transmission invites on free plan" do
user = User.create!(email: "t1@test.com", name: "T1", password: "password123", role: "coach")
user = User.create!(email: "t1@test.com", name: "T1", password: "Password123", role: "coach")
UserTeam.create!(user: user, team: team, role: "member", staff_kind: "transmission")
ent = described_class.new(team)
expect { ent.assert_can_invite! }.to raise_error(Teams::EntitlementError, /trasmissione/)