From 73e9ec631995d5ed91a3eb5e8416c924e7d7c5ad Mon Sep 17 00:00:00 2001 From: James Lopez Date: Tue, 15 Nov 2016 13:23:17 +0100 Subject: serialize all the things! --- spec/lib/gitlab/cycle_analytics/events_spec.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'spec/lib/gitlab/cycle_analytics') 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 -- cgit v1.2.1