Allinea le expectation billing agli stringhe i18n.
Le assertion usavano HTML/testi pre-traduzione (strong e label Attiva). Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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 — €40/anno")
|
||||
expect(response.body).to include("Attiva Premium Light — €5/mese")
|
||||
expect(response.body).to include("Premium Light — €40/anno")
|
||||
expect(response.body).to include("Premium Light — €5/mese")
|
||||
|
||||
allow(Billing::Stripe::CheckoutSession).to receive(:new).and_return(
|
||||
instance_double(Billing::Stripe::CheckoutSession, url: "https://checkout.stripe.com/test")
|
||||
@@ -141,7 +141,7 @@ RSpec.describe "Public club billing", type: :request do
|
||||
|
||||
expect(response).to have_http_status(:ok)
|
||||
expect(club.reload.subscription.plan.slug).to eq("premium_light")
|
||||
expect(response.body).to include("Piano attuale: <strong>Premium Light</strong>")
|
||||
expect(response.body).to include("Piano attuale: Premium Light")
|
||||
expect(Billing::Stripe::CheckoutSync).to have_received(:call).with(
|
||||
club: club, session_id: "cs_test"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user