Fix prezzi pubblici: Premium Light €5/€40, Full €20/€200.
Ripristina le etichette in PriceCatalog usate da prezzi, abbonamento e checkout. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -32,7 +32,7 @@ RSpec.describe Public::BillingHelper, type: :helper do
|
||||
current_interval: "yearly"
|
||||
)
|
||||
expect(action[:kind]).to eq(:current)
|
||||
expect(action[:label]).to include("€39,90/anno")
|
||||
expect(action[:label]).to include("€40/anno")
|
||||
end
|
||||
|
||||
it "propone cambio intervallo sullo stesso piano" do
|
||||
|
||||
@@ -72,7 +72,7 @@ RSpec.describe "Public club billing", type: :request do
|
||||
get public_club_billing_path(club)
|
||||
|
||||
expect(response.body).to include("Completa dati di fatturazione")
|
||||
expect(response.body).not_to include("Attiva Premium Light — €39,90/anno")
|
||||
expect(response.body).not_to include("Attiva Premium Light — €40/anno")
|
||||
end
|
||||
|
||||
it "dopo profilo completo reindirizza al checkout" do
|
||||
@@ -111,8 +111,8 @@ RSpec.describe "Public club billing", type: :request do
|
||||
|
||||
login!
|
||||
get public_club_billing_path(club)
|
||||
expect(response.body).to include("Attiva Premium Light — €39,90/anno")
|
||||
expect(response.body).to include("Attiva Premium Light — €4,90/mese")
|
||||
expect(response.body).to include("Attiva Premium Light — €40/anno")
|
||||
expect(response.body).to include("Attiva Premium Light — €5/mese")
|
||||
|
||||
allow(Billing::Stripe::CheckoutSession).to receive(:new).and_return(
|
||||
instance_double(Billing::Stripe::CheckoutSession, url: "https://checkout.stripe.com/test")
|
||||
|
||||
Reference in New Issue
Block a user