diff options
author | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2017-04-07 22:07:52 +0000 |
---|---|---|
committer | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2017-04-07 22:07:52 +0000 |
commit | 7759049b1fb664dedaf726f9ac1d14a1f4527ce6 (patch) | |
tree | 8e047d1b8352d969990fe298a12dc4ab02a106e7 /spec | |
parent | 33a050d31cc657bdcc03e8cd971451b47bbadacf (diff) | |
parent | 667fa9afa29d60ec38dfb787ea207f2e44a38ee8 (diff) | |
download | gitlab-ce-7759049b1fb664dedaf726f9ac1d14a1f4527ce6.tar.gz |
Merge branch 'activity-feed-user-name' into 'master'
Put back usernames in activity and profile feed
See merge request !10539
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/dashboard/project_member_activity_index_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/features/dashboard/project_member_activity_index_spec.rb b/spec/features/dashboard/project_member_activity_index_spec.rb index d62839a09ef..49d93db58a9 100644 --- a/spec/features/dashboard/project_member_activity_index_spec.rb +++ b/spec/features/dashboard/project_member_activity_index_spec.rb @@ -21,20 +21,20 @@ feature 'Project member activity', feature: true, js: true do context 'when a user joins the project' do before { visit_activities_and_wait_with_event(Event::JOINED) } - it { is_expected.to eq("joined project") } + it { is_expected.to eq("#{user.name} joined project") } end context 'when a user leaves the project' do before { visit_activities_and_wait_with_event(Event::LEFT) } - it { is_expected.to eq("left project") } + it { is_expected.to eq("#{user.name} left project") } end context 'when a users membership expires for the project' do before { visit_activities_and_wait_with_event(Event::EXPIRED) } it "presents the correct message" do - message = "removed due to membership expiration from project" + message = "#{user.name} removed due to membership expiration from project" is_expected.to eq(message) end end |