Skip to content

Commit

Permalink
spec
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielVajnagi committed Dec 3, 2024
1 parent 46df6fb commit 523fc7f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/requests/account/calculators_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 523fc7f

Please sign in to comment.