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
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-11-15 12:33:01 +0300
committerJames Lopez <james@jameslopez.es>2016-11-17 10:22:58 +0300
commitf5600997512f1068cdc36ad7d086e7447dbc6d9d (patch)
treed4e9daf14f35d6824fd0164f2e53b441f9422c3f /spec
parent747e5c3b6fb6e744bc1fce04f94930fdbb5f9121 (diff)
fix issue events and related spec - now using generic serializer for a hash
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/gitlab/cycle_analytics/events_spec.rb6
-rw-r--r--spec/serializers/analytics_generic_serializer_spec.rb2
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/lib/gitlab/cycle_analytics/events_spec.rb b/spec/lib/gitlab/cycle_analytics/events_spec.rb
index ebeea2be39e..073469a2b80 100644
--- a/spec/lib/gitlab/cycle_analytics/events_spec.rb
+++ b/spec/lib/gitlab/cycle_analytics/events_spec.rb
@@ -34,15 +34,15 @@ describe Gitlab::CycleAnalytics::Events do
end
it "has the author's URL" do
- expect(subject.issue_events.first[:author_profile_url]).not_to be_nil
+ expect(subject.issue_events.first[:author][:web_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
+ 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[:author_name]).to eq(context.author.name)
+ expect(subject.issue_events.first[:author][:name]).to eq(context.author.name)
end
end
diff --git a/spec/serializers/analytics_generic_serializer_spec.rb b/spec/serializers/analytics_generic_serializer_spec.rb
index 452595fb1f5..9eeb7bee562 100644
--- a/spec/serializers/analytics_generic_serializer_spec.rb
+++ b/spec/serializers/analytics_generic_serializer_spec.rb
@@ -27,7 +27,7 @@ describe AnalyticsGenericSerializer do
end
it 'contains important elements of analyticsBuild' do
- expect(json).to include(:title, :iid, :date, :total_time, :url, :author)
+ expect(json).to include(:title, :iid, :created_at, :total_time, :url, :author)
end
end
end