summaryrefslogtreecommitdiff
path: root/features/steps/project/builds
diff options
context:
space:
mode:
authorJosh Frye <joshfng@gmail.com>2016-06-01 10:50:32 -0400
committerJosh Frye <joshfng@gmail.com>2016-06-02 11:10:57 -0400
commit2605a0a844f187daeeff1f16920db445f53e2793 (patch)
tree27f47b7fbb99ae090c8694048efb4972c8509666 /features/steps/project/builds
parent4d9622e7d3e927ad158d26c780fee64c6d8183bc (diff)
downloadgitlab-ce-2605a0a844f187daeeff1f16920db445f53e2793.tar.gz
Refactor. Add tests.
Diffstat (limited to 'features/steps/project/builds')
-rw-r--r--features/steps/project/builds/summary.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/features/steps/project/builds/summary.rb b/features/steps/project/builds/summary.rb
index e9e2359146e..374eb0b0e07 100644
--- a/features/steps/project/builds/summary.rb
+++ b/features/steps/project/builds/summary.rb
@@ -36,4 +36,8 @@ class Spinach::Features::ProjectBuildsSummary < Spinach::FeatureSteps
expect(page).to have_content 'Build has been erased'
end
end
+
+ step 'the build count cache is updated' do
+ expect(@build.project.running_or_pending_build_count).to eq @build.project.builds.running_or_pending.count(:all)
+ end
end