feedbacks: update messaging about negative feedbacks.

Update wording about negative feedbacks on the new feedback page, and on the Dmail you receive when
you receive a negative feedback.
This commit is contained in:
evazion
2022-11-20 15:27:33 -06:00
parent cc13c5cd57
commit bbe32f5e5d
4 changed files with 29 additions and 23 deletions

View File

@@ -79,9 +79,23 @@ class UserFeedbacksControllerTest < ActionDispatch::IntegrationTest
end
context "create action" do
should "allow gold users to create new feedbacks" do
should "allow gold users to create positive feedbacks" do
assert_difference("UserFeedback.count", 1) do
post_auth user_feedbacks_path, @critic, params: {:user_feedback => {:category => "positive", :user_name => @user.name, :body => "xxx"}}
post_auth user_feedbacks_path, @critic, params: { user_feedback: { category: "positive", user_name: @user.name, body: "xxx" }}
assert_response :redirect
end
end
should "allow gold users to create neutral feedbacks" do
assert_difference("UserFeedback.count", 1) do
post_auth user_feedbacks_path, @critic, params: { user_feedback: { category: "positive", user_name: @user.name, body: "xxx" }}
assert_response :redirect
end
end
should "allow gold users to create negative feedbacks" do
assert_difference("UserFeedback.count", 1) do
post_auth user_feedbacks_path, @critic, params: { user_feedback: { category: "negative", user_name: @user.name, body: "xxx" }}
assert_response :redirect
end
end