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-03 18:31:30 +0300
committerJames Lopez <james@jameslopez.es>2016-11-17 10:22:57 +0300
commit11bad33a4206e482ffac42d75a121182a52e0cb0 (patch)
tree0179dcb2b256c91dfb1bebd5ec510f7703f7d0dc /spec/lib/gitlab/cycle_analytics
parent1b5b2eac222cc25bfe7301cdefb69a6635ef0682 (diff)
added missing fields to code events and updated spec
Diffstat (limited to 'spec/lib/gitlab/cycle_analytics')
-rw-r--r--spec/lib/gitlab/cycle_analytics/events_spec.rb10
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