We're not adding the rule because it would apply the current line length rule of 110 characters per line. We still haven't decided whether we'll keep that rule or make lines shorter so they're easier to read, particularly when vertically splitting the editor window. So, for now, I'm applying the rule to lines which are about 90 characters long.
14 lines
375 B
Ruby
14 lines
375 B
Ruby
require "rails_helper"
|
|
|
|
describe Admin::Budgets::FormComponent, type: :component do
|
|
describe "#voting_styles_select_options" do
|
|
it "provides vote kinds" do
|
|
types = [["Knapsack", "knapsack"], ["Approval", "approval"]]
|
|
|
|
component = Admin::Budgets::FormComponent.new(double)
|
|
|
|
expect(component.voting_styles_select_options).to eq(types)
|
|
end
|
|
end
|
|
end
|