Support creates follow (Merge pull request #3895)
* Supporting a proposal will create a follow relationship * Only followers receive notifications
This commit is contained in:
@@ -365,13 +365,13 @@ describe "Proposal's dashboard" do
|
||||
click_link "Message to users"
|
||||
end
|
||||
|
||||
expect(page).to have_link("Send message to proposal supporters")
|
||||
expect(page).to have_link("Send message to proposal followers")
|
||||
expect(page).to have_link("See previous notifications")
|
||||
end
|
||||
|
||||
scenario "Dashboard has a link to send message to proposal supporters" do
|
||||
visit messages_proposal_dashboard_path(proposal)
|
||||
click_link("Send message to proposal supporters")
|
||||
click_link("Send message to proposal followers")
|
||||
|
||||
fill_in "Title", with: "Thank you for supporting my proposal"
|
||||
fill_in "Message", with: "Please share it with others!"
|
||||
|
||||
Reference in New Issue
Block a user