Skip to content

Commit

Permalink
Add omitted value in keyword argument
Browse files Browse the repository at this point in the history
  • Loading branch information
andreslucena committed Oct 27, 2022
1 parent e604754 commit df27160
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -103,9 +103,9 @@ module Admin
it "doesn't import it again" do
expect do
command.call
end.to change { Project.where(budget:).count }.by(1)
end.to change { Project.where(budget: budget).count }.by(1)

projects = Project.where(budget:)
projects = Project.where(budget: budget)
first_project = projects.first
last_project = projects.last
expect(first_project.title).to eq(proposal.title)
Expand Down
Expand Up @@ -88,9 +88,9 @@ module Admin
it "doesn't import it again" do
expect do
command.call
end.not_to(change { Decidim::Elections::Answer.where(question:).count })
end.not_to(change { Decidim::Elections::Answer.where(question: question).count })

answers = Decidim::Elections::Answer.where(question:)
answers = Decidim::Elections::Answer.where(question: question)
first_answer = answers.first
last_answer = answers.last
expect(first_answer.title).to eq(proposal.title)
Expand Down

0 comments on commit df27160

Please sign in to comment.