Skip to content

Commit

Permalink
Fix the specs after the term change
Browse files Browse the repository at this point in the history
  • Loading branch information
ahukkanen committed Sep 21, 2023
1 parent 25f4c2c commit ba31ca7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions spec/helpers/concerns/conversation_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -44,7 +44,7 @@ module Messaging

context "when private user" do
it "includes the user name" do
expect(helper.username_list(participants)).to eq "<span class=\"label label--small label--basic\">Private user</span>"
expect(helper.username_list(participants)).to eq "<span class=\"label label--small label--basic\">Private participant</span>"
end
end

Expand Down Expand Up @@ -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 "<span class=\"label label--small label--basic\">Private user</span><br><span class=\"muted\"><i>This user has decided to make their profile private. New messages to this conversation have been therefore disabled.</i></span>"
expect(helper.conversation_name_for(participants)).to eq "<span class=\"label label--small label--basic\">Private participant</span><br><span class=\"muted\"><i>This participant has decided to make their profile private. New messages to this conversation have been therefore disabled.</i></span>"
end
end

Expand Down
6 changes: 3 additions & 3 deletions spec/system/conversations_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down Expand Up @@ -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!")
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions spec/system/user_privacy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit ba31ca7

Please sign in to comment.