wedding-planner/spec/services/vns/engine_spec.rb
Manuel Bustillo fe91f75ec0
All checks were successful
Check usage of free licenses / build-static-assets (pull_request) Successful in 1m30s
Add copyright notice / copyright_notice (pull_request) Successful in 2m18s
Run unit tests / unit_tests (pull_request) Successful in 3m38s
Add copyright notice
2024-11-10 17:57:29 +00:00

16 lines
508 B
Ruby

# Copyright (C) 2024 Manuel Bustillo
require 'rails_helper'
module VNS
RSpec.describe Engine do
describe '.sequence' do
it { expect(described_class.sequence([])).to eq([]) }
it { expect(described_class.sequence([1])).to eq([1]) }
it { expect(described_class.sequence([1, 2])).to eq([1, 2, 1]) }
it { expect(described_class.sequence([1, 2, 3])).to eq([1, 2, 3, 2, 1]) }
it { expect(described_class.sequence([1, 2, 3, 4])).to eq([1, 2, 3, 4, 3, 2, 1]) }
end
end
end