Skip to content

Commit

Permalink
Avoid rebinding the same name.
Browse files Browse the repository at this point in the history
  • Loading branch information
zorn committed Sep 8, 2024
1 parent c11331d commit 669efb4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/flick/ranked_voting_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -265,13 +265,13 @@ defmodule Flick.RankedVotingTest do

describe "create_vote/2" do
setup do
ballot =
prepublished_ballot =
ballot_fixture(
question_title: "What's for dinner?",
possible_answers: "Pizza, Tacos, Sushi, Burgers"
)

{:ok, ballot} = RankedVoting.publish_ballot(ballot)
{:ok, ballot} = RankedVoting.publish_ballot(prepublished_ballot)

{:ok, published_ballot: ballot}
end
Expand Down
4 changes: 2 additions & 2 deletions test/flick_web/live/vote/vote_capture_live_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ defmodule FlickWeb.Vote.VoteCaptureLiveTest do
alias Flick.RankedVoting.Ballot

setup ~M{conn} do
ballot =
prepublished_ballot =
ballot_fixture(%{
question_title: "What movie should we go see?",
possible_answers: "Hackers, Sneakers, WarGames, The Matrix, Tron",
url_slug: "movie-night"
})

{:ok, ballot} = Flick.RankedVoting.publish_ballot(ballot)
{:ok, ballot} = Flick.RankedVoting.publish_ballot(prepublished_ballot)

{:ok, view, _html} = live(conn, ~p"/ballot/movie-night")
~M{conn, view, ballot}
Expand Down

0 comments on commit 669efb4

Please sign in to comment.