Snellisci l'invito a trasmettere e invia l'email automatica.

Il form invito è sulla pagina squadra, genera il link e manda la mail; in caso di errore SMTP resta la copia manuale.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-15 20:02:25 +02:00
co-authored by Cursor
parent 3ed70b6999
commit db8b14ba4e
29 changed files with 448 additions and 97 deletions
@@ -1,10 +1,10 @@
require "rails_helper"
RSpec.describe Teams::StaffAssignment do
let!(:owner) { User.create!(name: "Owner", email: "owner@test.com", password: "password123", role: "coach") }
let!(:owner) { User.create!(name: "Owner", email: "owner@test.com", password: "Password123", role: "coach") }
let!(:club) { Club.create!(name: "Club", sport: "volleyball", primary_color: "#e53935", secondary_color: "#ffffff") }
let!(:team) { club.teams.create!(name: "Team", sport: "volleyball") }
let!(:other) { User.create!(name: "Other", email: "other@test.com", password: "password123", role: "coach") }
let!(:other) { User.create!(name: "Other", email: "other@test.com", password: "Password123", role: "coach") }
before do
ClubMembership.create!(user: owner, club: club, role: "owner")