From 523fc7fcdd4fdc1d5d953dda160513657025f34c Mon Sep 17 00:00:00 2001 From: DanielVajnagi <82052651+DanielVajnagi@users.noreply.github.com> Date: Tue, 3 Dec 2024 21:28:20 +0200 Subject: [PATCH] spec --- spec/requests/account/calculators_spec.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/spec/requests/account/calculators_spec.rb b/spec/requests/account/calculators_spec.rb index c4f45a524..95f57150b 100644 --- a/spec/requests/account/calculators_spec.rb +++ b/spec/requests/account/calculators_spec.rb @@ -88,4 +88,15 @@ end end end + + describe "GET /account/calculators/:slug" do + it "renders the calculator's show page correctly" do + get account_calculator_path(calculator.slug, locale: locale) + + expect(response).to have_http_status(:ok) + expect(response).to render_template(:show) + expect(response.body).to include(calculator.en_name) + expect(response.body).to include(calculator.slug) + end + end end