Remove obsolete routes for poll questions

The routes for poll questions were accidentally deleted in commit
5bb831e959 when deleting the `:show` action, and restored in commit
9871503c5e. However, the deleted code was:

```
resources :questions, only: [:show], controller: 'polls/questions' (...)
```

While the restored code was:

```
resources :questions, controller: 'polls/questions' (...)
```

Meaning we forgot to add the `only: []` option when restoring the
routes.

We also forgot to remove the `before_action` code when deleting the
`:show` action, so we're removing it now.
This commit is contained in:
Javi Martín
2024-05-14 00:59:01 +02:00
parent e9377c1536
commit 9fbd7eec8f
3 changed files with 1 additions and 9 deletions

View File

@@ -53,12 +53,6 @@ describe "Polymorphic routes" do
)
end
it "routes poll questions" do
question = create(:poll_question)
expect(polymorphic_path(question)).to eq question_path(question)
end
it "routes topics" do
community = create(:proposal).community
topic = create(:topic, community: community)