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-12-02 19:09:29 +0300
committerJames Lopez <james@jameslopez.es>2017-01-17 13:32:55 +0300
commitb214be493d9f179d4a929ee32d94a336da7b38f1 (patch)
treef669ed4d895e4e97cb050e22e210fe90cb57ba0d /spec/lib/gitlab/cycle_analytics/code_event_fetcher_spec.rb
parentdaa4f3ded718f4144877b7f0402bd495151c28de (diff)
big refactor based on MR feedback
Diffstat (limited to 'spec/lib/gitlab/cycle_analytics/code_event_fetcher_spec.rb')
-rw-r--r--spec/lib/gitlab/cycle_analytics/code_event_fetcher_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/lib/gitlab/cycle_analytics/code_event_fetcher_spec.rb b/spec/lib/gitlab/cycle_analytics/code_event_fetcher_spec.rb
new file mode 100644
index 00000000000..abfd60d7f6a
--- /dev/null
+++ b/spec/lib/gitlab/cycle_analytics/code_event_fetcher_spec.rb
@@ -0,0 +1,12 @@
+require 'spec_helper'
+require 'lib/gitlab/cycle_analytics/shared_event_spec'
+
+describe Gitlab::CycleAnalytics::CodeEventFetcher do
+ let(:stage_name) { :code }
+
+ it_behaves_like 'default query config' do
+ it 'does not have the default order' do
+ expect(event.order).not_to eq(event.start_time_attrs)
+ end
+ end
+end