Skip to content

Commit

Permalink
Fix tests i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
moustachu committed Nov 3, 2023
1 parent b30e8e5 commit 6716afa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ def index
.not_hidden

@proposals = @base_query.includes(:component, :coauthorships)
@all_geocoded_proposals = @base_query.geocoded.where.not(latitude: Float::NAN, longitude: Float::NAN)
@all_geocoded_proposals = @base_query.geocoded
.where.not(latitude: Float::NAN)
.where.not(longitude: Float::NAN)

@voted_proposals = if current_user
::Decidim::Proposals::ProposalVote.where(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ module Proposals
it "is not able to withdraw the proposal" do
put :withdraw, params: params.merge(id: proposal.id)

expect(flash[:alert]).to eq("This proposal can not be withdrawn because it already has supports.")
expect(flash[:alert]).to eq("This idea can not be withdrawn because it already has supports.")
expect(response).to have_http_status(:found)
proposal.reload
expect(proposal.withdrawn?).to be false
Expand Down

0 comments on commit 6716afa

Please sign in to comment.