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