diff --git a/spec/helpers/concerns/conversation_helper_spec.rb b/spec/helpers/concerns/conversation_helper_spec.rb index bb0b8e6..c5af98b 100644 --- a/spec/helpers/concerns/conversation_helper_spec.rb +++ b/spec/helpers/concerns/conversation_helper_spec.rb @@ -14,7 +14,7 @@ module Messaging end it "does not includes the user name for private users" do - expect(helper.conversation_label_for(participants)).to eq "Conversation with Private user" + expect(helper.conversation_label_for(participants)).to eq "Conversation with Private participant" end context "when public user" do @@ -44,7 +44,7 @@ module Messaging context "when private user" do it "includes the user name" do - expect(helper.username_list(participants)).to eq "Private user" + expect(helper.username_list(participants)).to eq "Private participant" end end @@ -83,7 +83,7 @@ module Messaging context "when private user" do it "includes the user name" do - expect(helper.conversation_name_for(participants)).to eq "Private user
This user has decided to make their profile private. New messages to this conversation have been therefore disabled." + expect(helper.conversation_name_for(participants)).to eq "Private participant
This participant has decided to make their profile private. New messages to this conversation have been therefore disabled." end end diff --git a/spec/system/conversations_spec.rb b/spec/system/conversations_spec.rb index 7c3eea8..2be12b1 100644 --- a/spec/system/conversations_spec.rb +++ b/spec/system/conversations_spec.rb @@ -173,7 +173,7 @@ refresh expect(page).to have_content("Conversation with") - expect(page).to have_content("Private user") + expect(page).to have_content("Private participant") expect(page).to have_content("Hello there receiver!") expect(page).to have_content("Hello there user!") expect(page).to have_content("You cannot have a conversation with a private participant.") @@ -236,7 +236,7 @@ refresh expect(page).to have_content("Conversation with") - expect(page).to have_content("Private user") + expect(page).to have_content("Private participant") expect(page).to have_content(group_chat_participant.name) expect(page).to have_content("Hello there receiver!") expect(page).to have_content("Hello there user!") @@ -274,7 +274,7 @@ expect(page).to have_content("Conversation with") expect(page).to have_content(receiver.name) expect(page).to have_content(group_chat_participant.name) - expect(page).to have_content("The following user has disabled their private messaging: #{receiver.name}") + expect(page).to have_content("The following participant has disabled their private messaging: #{receiver.name}") expect(page).to have_content("Hello there receiver!") expect(page).to have_content("Hello there user!") end diff --git a/spec/system/user_privacy_spec.rb b/spec/system/user_privacy_spec.rb index 393cc81..2107194 100644 --- a/spec/system/user_privacy_spec.rb +++ b/spec/system/user_privacy_spec.rb @@ -119,7 +119,7 @@ visit new_proposal_path(component) expect(page).to have_content("Public profile is required for this action") - expect(page).to have_content("You are trying to access a page which requires your profile to be public. Making your profile public allows other users to see information about you.") + expect(page).to have_content("You are trying to access a page which requires your profile to be public. Making your profile public allows other participants to see information about you.") expect(page).to have_content("Additional information about making your profile public will be presented after clicking the button below.") click_button "Publish your profile" @@ -234,7 +234,7 @@ visit new_meeting_path(component) expect(page).to have_content("Public profile is required for this action") - expect(page).to have_content("You are trying to access a page which requires your profile to be public. Making your profile public allows other users to see information about you.") + expect(page).to have_content("You are trying to access a page which requires your profile to be public. Making your profile public allows other participants to see information about you.") expect(page).to have_content("Additional information about making your profile public will be presented after clicking the button below.") click_button "Publish your profile" @@ -278,7 +278,7 @@ visit new_debate_path(component) expect(page).to have_content("Public profile is required for this action") - expect(page).to have_content("You are trying to access a page which requires your profile to be public. Making your profile public allows other users to see information about you.") + expect(page).to have_content("You are trying to access a page which requires your profile to be public. Making your profile public allows other participants to see information about you.") expect(page).to have_content("Additional information about making your profile public will be presented after clicking the button below.") click_button "Publish your profile"