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-15 15:23:17 +0300
committerJames Lopez <james@jameslopez.es>2016-11-17 10:22:58 +0300
commit73e9ec631995d5ed91a3eb5e8416c924e7d7c5ad (patch)
tree5048fdf732a43ed0ea0a51fc64e354df4e6177df /spec/lib/gitlab/cycle_analytics
parent8743e59f78cd8f8701460796dcc06854281f3f73 (diff)
serialize all the things!
Diffstat (limited to 'spec/lib/gitlab/cycle_analytics')
-rw-r--r--spec/lib/gitlab/cycle_analytics/events_spec.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/lib/gitlab/cycle_analytics/events_spec.rb b/spec/lib/gitlab/cycle_analytics/events_spec.rb
index 55ab28e2af8..d46e70e9ba2 100644
--- a/spec/lib/gitlab/cycle_analytics/events_spec.rb
+++ b/spec/lib/gitlab/cycle_analytics/events_spec.rb
@@ -52,7 +52,11 @@ describe Gitlab::CycleAnalytics::Events do
end
it 'has a sha short ID' do
- expect(subject.plan_events.first[:sha]).not_to be_nil
+ expect(subject.plan_events.first[:short_sha]).not_to be_nil
+ end
+
+ it 'has the URL' do
+ expect(subject.plan_events.first[:commit_url]).not_to be_nil
end
it 'has the total time' do
@@ -68,7 +72,7 @@ describe Gitlab::CycleAnalytics::Events do
end
it "has the author's name" do
- expect(subject.plan_events.first[:author][:name]).to eq(context.author.name)
+ expect(subject.plan_events.first[:author][:name]).not_to be_nil
end
end