From f5600997512f1068cdc36ad7d086e7447dbc6d9d Mon Sep 17 00:00:00 2001 From: James Lopez Date: Tue, 15 Nov 2016 10:33:01 +0100 Subject: fix issue events and related spec - now using generic serializer for a hash --- spec/lib/gitlab/cycle_analytics/events_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'spec/lib') 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 -- cgit v1.2.3