summaryrefslogtreecommitdiff
path: root/features/steps
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2016-10-14 16:58:55 -0700
committerStan Hu <stanhu@gmail.com>2016-10-14 16:58:55 -0700
commit5b5c7e048b6e975a655478b0e5d421c2438276aa (patch)
tree2d63aa8b863e2f3ac1fb9db6c81c5a349f3a3de1 /features/steps
parent2ebc63dd3ce08ff35bf89d39e1906ce1cf828b3a (diff)
downloadgitlab-ce-5b5c7e048b6e975a655478b0e5d421c2438276aa.tar.gz
Fix trending projects Spinach failurefix-trending-projects-spinach-failure
The trending projects list is now pre-calculated. To make this work with the Spinach test, we have to manually refresh the list. Partial fix to #23378
Diffstat (limited to 'features/steps')
-rw-r--r--features/steps/shared/project.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/features/steps/shared/project.rb b/features/steps/shared/project.rb
index afbd8ef1233..cab85a48396 100644
--- a/features/steps/shared/project.rb
+++ b/features/steps/shared/project.rb
@@ -218,6 +218,10 @@ module SharedProject
2.times { create(:note_on_issue, project: project) }
end
+ step 'trending projects are refreshed' do
+ TrendingProject.refresh!
+ end
+
step 'project "Shop" has labels: "bug", "feature", "enhancement"' do
project = Project.find_by(name: "Shop")
create(:label, project: project, title: 'bug')