Simplify creating a proposal poll in a test

This way we avoid variables starting with underscores, which we don't
use almost anywhere else.
This commit is contained in:
Javi Martín
2024-03-02 23:32:21 +01:00
parent c480cdd918
commit deb8b374e7

View File

@@ -55,11 +55,11 @@ describe "Polls" do
end
scenario "Proposal polls won't be listed" do
proposal = create(:proposal)
_poll = create(:poll, related: proposal)
create(:poll, related: create(:proposal))
visit polls_path
expect(page).to have_content("There are no open votings")
expect(page).to have_content "There are no open votings"
end
scenario "Filtering polls" do