diff options
author | James Lopez <james@jameslopez.es> | 2016-11-03 16:31:30 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-11-17 08:22:57 +0100 |
commit | 11bad33a4206e482ffac42d75a121182a52e0cb0 (patch) | |
tree | 0179dcb2b256c91dfb1bebd5ec510f7703f7d0dc /spec/lib/gitlab/cycle_analytics/events_spec.rb | |
parent | 1b5b2eac222cc25bfe7301cdefb69a6635ef0682 (diff) | |
download | gitlab-ce-11bad33a4206e482ffac42d75a121182a52e0cb0.tar.gz |
added missing fields to code events and updated spec
Diffstat (limited to 'spec/lib/gitlab/cycle_analytics/events_spec.rb')
-rw-r--r-- | spec/lib/gitlab/cycle_analytics/events_spec.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/spec/lib/gitlab/cycle_analytics/events_spec.rb b/spec/lib/gitlab/cycle_analytics/events_spec.rb index 80a66693a37..32e7bd7b12c 100644 --- a/spec/lib/gitlab/cycle_analytics/events_spec.rb +++ b/spec/lib/gitlab/cycle_analytics/events_spec.rb @@ -89,12 +89,16 @@ describe Gitlab::CycleAnalytics::Events do expect(subject.code_events.first['created_at']).to end_with('ago') end - it "has the author's email" do - expect(subject.code_events.first['email']).to eq(context.author.email) + it "has the author's URL" do + expect(subject.code_events.first['author_profile_url']).not_to be_nil + end + + it "has the author's avatar URL" do + expect(subject.code_events.first['author_avatar_url']).not_to be_nil end it "has the author's name" do - expect(subject.code_events.first['name']).to eq(context.author.name) + expect(subject.code_events.first['author_name']).to eq(context.author.name) end end |