Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/banzai/filter_array_spec.rb')
-rw-r--r--spec/lib/banzai/filter_array_spec.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/lib/banzai/filter_array_spec.rb b/spec/lib/banzai/filter_array_spec.rb
index bb457568bee..1c401fdaf8a 100644
--- a/spec/lib/banzai/filter_array_spec.rb
+++ b/spec/lib/banzai/filter_array_spec.rb
@@ -5,37 +5,37 @@ require 'fast_spec_helper'
RSpec.describe Banzai::FilterArray, feature_category: :team_planning do
describe '#insert_after' do
it 'inserts an element after a provided element' do
- filters = described_class.new(%w(a b c))
+ filters = described_class.new(%w[a b c])
filters.insert_after('b', '1')
- expect(filters).to eq %w(a b 1 c)
+ expect(filters).to eq %w[a b 1 c]
end
it 'inserts an element at the end when the provided element does not exist' do
- filters = described_class.new(%w(a b c))
+ filters = described_class.new(%w[a b c])
filters.insert_after('d', '1')
- expect(filters).to eq %w(a b c 1)
+ expect(filters).to eq %w[a b c 1]
end
end
describe '#insert_before' do
it 'inserts an element before a provided element' do
- filters = described_class.new(%w(a b c))
+ filters = described_class.new(%w[a b c])
filters.insert_before('b', '1')
- expect(filters).to eq %w(a 1 b c)
+ expect(filters).to eq %w[a 1 b c]
end
it 'inserts an element at the beginning when the provided element does not exist' do
- filters = described_class.new(%w(a b c))
+ filters = described_class.new(%w[a b c])
filters.insert_before('d', '1')
- expect(filters).to eq %w(1 a b c)
+ expect(filters).to eq %w[1 a b c]
end
end
end