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:
authorJames Lopez <james@jameslopez.es>2016-11-22 16:29:25 +0300
committerJames Lopez <james@jameslopez.es>2017-01-17 13:32:54 +0300
commit02e1e4819234662faddd7d8eb5c54d9bfdf9e7e6 (patch)
treed789f920c5d3dd66f140c9dcfe774ac158623ca4 /spec/support/cycle_analytics_helpers
parent8639ea1b0315045c0e4a5ad8d6419903507850c3 (diff)
more refactoring and fixing old specs
Diffstat (limited to 'spec/support/cycle_analytics_helpers')
-rw-r--r--spec/support/cycle_analytics_helpers/test_generation.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/support/cycle_analytics_helpers/test_generation.rb b/spec/support/cycle_analytics_helpers/test_generation.rb
index 8e19a6c92e2..ab624161616 100644
--- a/spec/support/cycle_analytics_helpers/test_generation.rb
+++ b/spec/support/cycle_analytics_helpers/test_generation.rb
@@ -1,8 +1,13 @@
+class CycleAnalyticsTest < CycleAnalytics
+ def method_missing(method_sym, *arguments, &block)
+ classify_stage(method_sym).new(project: @project, options: @options, stage: method_sym).median
+ end
+end
+
# rubocop:disable Metrics/AbcSize
# Note: The ABC size is large here because we have a method generating test cases with
# multiple nested contexts. This shouldn't count as a violation.
-
module CycleAnalyticsHelpers
module TestGeneration
# Generate the most common set of specs that all cycle analytics phases need to have.