Commit 01210db7 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu Committed by Andreas Brandl

Apply formatting suggestions to spec

parent 44d218ee
...@@ -120,6 +120,7 @@ RSpec.describe Gitlab::Database::Partitioning::PartitionManager do ...@@ -120,6 +120,7 @@ RSpec.describe Gitlab::Database::Partitioning::PartitionManager do
before do before do
stub_feature_flags(partition_pruning_dry_run: true) stub_feature_flags(partition_pruning_dry_run: true)
end end
it 'detaches each extra partition' do it 'detaches each extra partition' do
extra_partitions.each { |p| expect(manager).to receive(:detach_one_partition).with(p) } extra_partitions.each { |p| expect(manager).to receive(:detach_one_partition).with(p) }
...@@ -149,6 +150,7 @@ RSpec.describe Gitlab::Database::Partitioning::PartitionManager do ...@@ -149,6 +150,7 @@ RSpec.describe Gitlab::Database::Partitioning::PartitionManager do
before do before do
stub_feature_flags(partition_pruning_dry_run: false) stub_feature_flags(partition_pruning_dry_run: false)
end end
it 'returns immediately' do it 'returns immediately' do
expect(manager).not_to receive(:detach) expect(manager).not_to receive(:detach)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment