it{expect(remove_member_message(project_member)).toeq"Are you sure you want to remove #{project_member.user.name} from the #{project.name_with_namespace} project?"}
it{expect(remove_member_message(project_member)).toeq"Are you sure you want to remove #{project_member.user.name} from the #{project.full_name} project?"}
it{expect(remove_member_message(project_member_invite)).toeq"Are you sure you want to revoke the invitation for #{project_member_invite.invite_email} to join the #{project.name_with_namespace} project?"}
it{expect(remove_member_message(project_member_invite)).toeq"Are you sure you want to revoke the invitation for #{project_member_invite.invite_email} to join the #{project.full_name} project?"}
it{expect(remove_member_message(project_member_request)).toeq"Are you sure you want to deny #{requester.name}'s request to join the #{project.name_with_namespace} project?"}
it{expect(remove_member_message(project_member_request)).toeq"Are you sure you want to deny #{requester.name}'s request to join the #{project.full_name} project?"}
it{expect(remove_member_message(project_member_request,user: requester)).toeq"Are you sure you want to withdraw your access request for the #{project.name_with_namespace} project?"}
it{expect(remove_member_message(project_member_request,user: requester)).toeq"Are you sure you want to withdraw your access request for the #{project.full_name} project?"}
it{expect(remove_member_message(group_member)).toeq"Are you sure you want to remove #{group_member.user.name} from the #{group.name} group?"}
it{expect(remove_member_message(group_member)).toeq"Are you sure you want to remove #{group_member.user.name} from the #{group.name} group?"}
it{expect(remove_member_message(group_member_invite)).toeq"Are you sure you want to revoke the invitation for #{group_member_invite.invite_email} to join the #{group.name} group?"}
it{expect(remove_member_message(group_member_invite)).toeq"Are you sure you want to revoke the invitation for #{group_member_invite.invite_email} to join the #{group.name} group?"}
it{expect(remove_member_message(group_member_request)).toeq"Are you sure you want to deny #{requester.name}'s request to join the #{group.name} group?"}
it{expect(remove_member_message(group_member_request)).toeq"Are you sure you want to deny #{requester.name}'s request to join the #{group.name} group?"}
...
@@ -42,7 +42,7 @@ describe MembersHelper do
...
@@ -42,7 +42,7 @@ describe MembersHelper do
let(:group){build_stubbed(:group)}
let(:group){build_stubbed(:group)}
let(:user){build_stubbed(:user)}
let(:user){build_stubbed(:user)}
it{expect(leave_confirmation_message(project)).toeq"Are you sure you want to leave the \"#{project.name_with_namespace}\" project?"}
it{expect(leave_confirmation_message(project)).toeq"Are you sure you want to leave the \"#{project.full_name}\" project?"}
it{expect(leave_confirmation_message(group)).toeq"Are you sure you want to leave the \"#{group.name}\" group?"}
it{expect(leave_confirmation_message(group)).toeq"Are you sure you want to leave the \"#{group.name}\" group?"}