You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
319 B
13 lines
319 B
2 years ago
|
require "rails_helper"
|
||
|
|
||
|
RSpec.describe Forms::BulkUploadSales::Year do
|
||
|
subject(:form) { described_class.new }
|
||
|
|
||
|
describe "#options" do
|
||
|
it "returns correct years" do
|
||
|
expect(form.options.map(&:id)).to eql([2022, 2021])
|
||
|
expect(form.options.map(&:name)).to eql(%w[2022/2023 2021/2022])
|
||
|
end
|
||
|
end
|
||
|
end
|