spec/models/budget/result_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage

Line is too long. [129/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

        investment5 = create(:budget_investment, :selected, heading: heading, price: 100, ballot_lines_count: 500, winner: false)
Severity: Minor
Found in spec/models/budget/result_spec.rb by rubocop

Line is too long. [112/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

        investment2 = create(:budget_investment, :winner, heading: heading, price: 300, ballot_lines_count: 800)
Severity: Minor
Found in spec/models/budget/result_spec.rb by rubocop

Line is too long. [112/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

        investment4 = create(:budget_investment, :winner, heading: heading, price: 500, ballot_lines_count: 600)
Severity: Minor
Found in spec/models/budget/result_spec.rb by rubocop

Line is too long. [129/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

        investment1 = create(:budget_investment, :selected, heading: heading, price: 200, ballot_lines_count: 900, winner: false)
Severity: Minor
Found in spec/models/budget/result_spec.rb by rubocop

Line is too long. [118/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

        investment3 = create(:budget_investment, :incompatible, heading: heading, price: 500, ballot_lines_count: 700)
Severity: Minor
Found in spec/models/budget/result_spec.rb by rubocop

Line is too long. [132/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

        investment3 = create(:budget_investment, :incompatible, heading: heading, price: 500, ballot_lines_count: 700, winner: true)
Severity: Minor
Found in spec/models/budget/result_spec.rb by rubocop

Line is too long. [112/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

        investment2 = create(:budget_investment, :winner, heading: heading, price: 300, ballot_lines_count: 800)
Severity: Minor
Found in spec/models/budget/result_spec.rb by rubocop

Line is too long. [112/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

        investment4 = create(:budget_investment, :winner, heading: heading, price: 500, ballot_lines_count: 600)
Severity: Minor
Found in spec/models/budget/result_spec.rb by rubocop

Line is too long. [112/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

        investment5 = create(:budget_investment, :winner, heading: heading, price: 100, ballot_lines_count: 500)
Severity: Minor
Found in spec/models/budget/result_spec.rb by rubocop

Line is too long. [119/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

        expect(heading.investments.winners.pluck(:id)).to match_array([investment1.id, investment2.id, investment3.id])
Severity: Minor
Found in spec/models/budget/result_spec.rb by rubocop

Line is too long. [119/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

        expect(heading.investments.winners.pluck(:id)).to match_array([investment1.id, investment2.id, investment4.id])
Severity: Minor
Found in spec/models/budget/result_spec.rb by rubocop

Line is too long. [112/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

        investment2 = create(:budget_investment, :winner, heading: heading, price: 300, ballot_lines_count: 800)
Severity: Minor
Found in spec/models/budget/result_spec.rb by rubocop

Line is too long. [112/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

        investment1 = create(:budget_investment, :winner, heading: heading, price: 200, ballot_lines_count: 900)
Severity: Minor
Found in spec/models/budget/result_spec.rb by rubocop

Line is too long. [129/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

        investment4 = create(:budget_investment, :selected, heading: heading, price: 500, ballot_lines_count: 600, winner: false)
Severity: Minor
Found in spec/models/budget/result_spec.rb by rubocop

Line is too long. [119/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

        expect(heading.investments.winners.pluck(:id)).to match_array([investment1.id, investment2.id, investment4.id])
Severity: Minor
Found in spec/models/budget/result_spec.rb by rubocop

Line is too long. [112/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

        investment4 = create(:budget_investment, :winner, heading: heading, price: 500, ballot_lines_count: 600)
Severity: Minor
Found in spec/models/budget/result_spec.rb by rubocop

Line is too long. [129/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

        investment2 = create(:budget_investment, :selected, heading: heading, price: 300, ballot_lines_count: 800, winner: false)
Severity: Minor
Found in spec/models/budget/result_spec.rb by rubocop

Line is too long. [112/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

        investment5 = create(:budget_investment, :winner, heading: heading, price: 100, ballot_lines_count: 500)
Severity: Minor
Found in spec/models/budget/result_spec.rb by rubocop

Line is too long. [133/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

        investment3 = create(:budget_investment, :incompatible, heading: heading, price: 500, ballot_lines_count: 700, winner: false)
Severity: Minor
Found in spec/models/budget/result_spec.rb by rubocop

Line is too long. [112/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

        investment1 = create(:budget_investment, :winner, heading: heading, price: 200, ballot_lines_count: 900)
Severity: Minor
Found in spec/models/budget/result_spec.rb by rubocop

Line is too long. [112/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

        investment3 = create(:budget_investment, :winner, heading: heading, price: 500, ballot_lines_count: 700)
Severity: Minor
Found in spec/models/budget/result_spec.rb by rubocop

Line is too long. [112/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

        investment1 = create(:budget_investment, :winner, heading: heading, price: 200, ballot_lines_count: 900)
Severity: Minor
Found in spec/models/budget/result_spec.rb by rubocop

Line is too long. [119/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

        expect(heading.investments.winners.pluck(:id)).to match_array([investment1.id, investment2.id, investment4.id])
Severity: Minor
Found in spec/models/budget/result_spec.rb by rubocop

Line is too long. [112/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

        investment5 = create(:budget_investment, :winner, heading: heading, price: 100, ballot_lines_count: 500)
Severity: Minor
Found in spec/models/budget/result_spec.rb by rubocop

There are no issues that match your filters.

Category
Status