Club come entità principale, branding e fix infrastruttura streaming.
Introduce clubs con abbonamento, branding Active Storage e flusso registrazione società; corregge healthcheck MediaMTX (immagine distroless) e allinea dominio produzione matchlivetv.it. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
require "rails_helper"
|
||||
|
||||
RSpec.describe Teams::Entitlements do
|
||||
let(:team) { Team.create!(name: "Test Team", sport: "volleyball") }
|
||||
let(:club) { Club.create!(name: "Test Club", sport: "volleyball", primary_color: "#e53935", secondary_color: "#ffffff") }
|
||||
let(:team) { club.teams.create!(name: "Test Team", sport: "volleyball") }
|
||||
|
||||
before do
|
||||
load Rails.root.join("db/seeds/plans.rb")
|
||||
Billing::AssignPlan.call(team: team, plan_slug: "free")
|
||||
Billing::AssignPlan.call(club: club, plan_slug: "free")
|
||||
end
|
||||
|
||||
subject(:ent) { described_class.new(team) }
|
||||
@@ -19,7 +20,7 @@ RSpec.describe Teams::Entitlements do
|
||||
end
|
||||
|
||||
it "allows youtube on premium full" do
|
||||
Billing::AssignPlan.call(team: team, plan_slug: "premium_full")
|
||||
Billing::AssignPlan.call(club: club, plan_slug: "premium_full")
|
||||
expect(ent.can_stream_on?("youtube")).to be true
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user