Merge branch 'main' into collaudo

Porta in collaudo l'invito trasmissione con email automatica.
This commit is contained in:
2026-08-15 20:02:40 +02:00
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")