Fix all Layout/SpaceAroundOperators rubocop issues and remove file list from rubocop_todo list
This commit is contained in:
@@ -9,12 +9,12 @@ describe ProposalsHelper do
|
||||
end
|
||||
|
||||
it "should be a between 1 and 100 if there are votes but less than needed" do
|
||||
proposal = create(:proposal, cached_votes_up: Proposal.votes_needed_for_success/2)
|
||||
proposal = create(:proposal, cached_votes_up: Proposal.votes_needed_for_success / 2)
|
||||
expect(progress_bar_percentage(proposal)).to eq 50
|
||||
end
|
||||
|
||||
it "should be 100 if there are more votes than needed" do
|
||||
proposal = create(:proposal, cached_votes_up: Proposal.votes_needed_for_success*2)
|
||||
proposal = create(:proposal, cached_votes_up: Proposal.votes_needed_for_success * 2)
|
||||
expect(progress_bar_percentage(proposal)).to eq 100
|
||||
end
|
||||
end
|
||||
@@ -31,12 +31,12 @@ describe ProposalsHelper do
|
||||
end
|
||||
|
||||
it "should be a between 1 and 100 if there are votes but less than needed" do
|
||||
proposal = create(:proposal, cached_votes_up: Proposal.votes_needed_for_success/2)
|
||||
proposal = create(:proposal, cached_votes_up: Proposal.votes_needed_for_success / 2)
|
||||
expect(supports_percentage(proposal)).to eq "50%"
|
||||
end
|
||||
|
||||
it "should be 100 if there are more votes than needed" do
|
||||
proposal = create(:proposal, cached_votes_up: Proposal.votes_needed_for_success*2)
|
||||
proposal = create(:proposal, cached_votes_up: Proposal.votes_needed_for_success * 2)
|
||||
expect(supports_percentage(proposal)).to eq "100%"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user