Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Fix: scenario pages aren't rendering on Rails 6 #93

Merged
merged 2 commits into from
Jun 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/controllers/guide/scenarios_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ def scenario_id
end

def scenario_format
params[:scenario_format]
params[:scenario_format].to_sym
end
end
8 changes: 8 additions & 0 deletions spec/controllers/guide/scenarios_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@
expect(assigns(:scenario_view)).
to be_a Guide::ScenarioView
end

context "rendering turned on" do
render_views

it "responds with 200 ok" do
expect(response).to have_http_status(:ok)
end
end
end
end

Expand Down