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
path: root/spec/lib
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-11-03 15:06:14 +0300
committerJames Lopez <james@jameslopez.es>2016-11-17 10:22:56 +0300
commit8f7266cd4b6a3e65224b55c2b91509f5ac88d837 (patch)
treeda1da700b5383342c4e26b9dadc02a47a2c8ad01 /spec/lib
parent8bb4750eb3987999b0ee617c29224e468e9147b3 (diff)
added missing fields to issue. Also, added a light url builder to add URLs easily from arel. Updated specs.
Diffstat (limited to 'spec/lib')
-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 7d544dbdb19..e4535f467ec 100644
--- a/spec/lib/gitlab/cycle_analytics/events_spec.rb
+++ b/spec/lib/gitlab/cycle_analytics/events_spec.rb
@@ -30,12 +30,16 @@ describe Gitlab::CycleAnalytics::Events do
expect(subject.issue_events.first['created_at']).to end_with('ago')
end
- it "has the author's email" do
- expect(subject.issue_events.first['email']).to eq(context.author.email)
+ it "has the author's URL" do
+ expect(subject.issue_events.first['author_profile_url']).not_to be_nil
+ end
+
+ it "has the author's avatar URL" do
+ expect(subject.issue_events.first['author_avatar_url']).not_to be_nil
end
it "has the author's name" do
- expect(subject.issue_events.first['name']).to eq(context.author.name)
+ expect(subject.issue_events.first['author_name']).to eq(context.author.name)
end
end