Skip to content
代码片段 群组 项目
未验证 提交 76b5e6fd 编辑于 作者: Rémy Coutable's avatar Rémy Coutable
浏览文件

Remove edge case for :geo in Quality::TestLevel


Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
上级 653f188f
No related branches found
No related tags found
无相关合并请求
...@@ -11,13 +11,6 @@ ...@@ -11,13 +11,6 @@
end end
end end
context 'when level is geo' do
it 'returns a pattern' do
expect(subject.pattern(:geo))
.to eq("spec/**{,/**/}*_spec.rb")
end
end
context 'when level is frontend_fixture' do context 'when level is frontend_fixture' do
it 'returns a pattern' do it 'returns a pattern' do
expect(subject.pattern(:frontend_fixture)) expect(subject.pattern(:frontend_fixture))
...@@ -93,13 +86,6 @@ ...@@ -93,13 +86,6 @@
end end
end end
context 'when level is geo' do
it 'returns a regexp' do
expect(subject.regexp(:geo))
.to eq(%r{spec/})
end
end
context 'when level is frontend_fixture' do context 'when level is frontend_fixture' do
it 'returns a regexp' do it 'returns a regexp' do
expect(subject.regexp(:frontend_fixture)) expect(subject.regexp(:frontend_fixture))
......
...@@ -139,8 +139,7 @@ def folders_pattern(level) ...@@ -139,8 +139,7 @@ def folders_pattern(level)
case level case level
when :migration when :migration
"{#{migration_and_background_migration_folders.join(',')}}" "{#{migration_and_background_migration_folders.join(',')}}"
# Geo specs aren't in a specific folder, but they all have the :geo tag, so we must search for them globally when :all
when :all, :geo
'**' '**'
else else
"{#{TEST_LEVEL_FOLDERS.fetch(level).join(',')}}" "{#{TEST_LEVEL_FOLDERS.fetch(level).join(',')}}"
...@@ -151,8 +150,7 @@ def folders_regex(level) ...@@ -151,8 +150,7 @@ def folders_regex(level)
case level case level
when :migration when :migration
"(#{migration_and_background_migration_folders.join('|')})" "(#{migration_and_background_migration_folders.join('|')})"
# Geo specs aren't in a specific folder, but they all have the :geo tag, so we must search for them globally when :all
when :all, :geo
'' ''
else else
"(#{TEST_LEVEL_FOLDERS.fetch(level).join('|')})" "(#{TEST_LEVEL_FOLDERS.fetch(level).join('|')})"
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册