diff options
author | James Lopez <james@jameslopez.es> | 2016-11-22 14:29:25 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-01-17 11:32:54 +0100 |
commit | 02e1e4819234662faddd7d8eb5c54d9bfdf9e7e6 (patch) | |
tree | d789f920c5d3dd66f140c9dcfe774ac158623ca4 /spec/support | |
parent | 8639ea1b0315045c0e4a5ad8d6419903507850c3 (diff) | |
download | gitlab-ce-02e1e4819234662faddd7d8eb5c54d9bfdf9e7e6.tar.gz |
more refactoring and fixing old specs
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/cycle_analytics_helpers/test_generation.rb | 7 |
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. |