wedding-planner/spec/services/vns/engine_spec.rb

18 lines
561 B
Ruby
Raw Normal View History

# Copyright (C) 2024-2025 LibreWeddingPlanner contributors
2024-11-10 17:57:29 +00:00
# frozen_string_literal: true
2024-11-10 18:55:04 +01:00
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