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:
@@ -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/)
|
||||
|
||||
Reference in New Issue
Block a user