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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user