Commit 67887fc5ac3a71ec203fd021bbcb72621ff4601f

Authored by Marcos Pereira
1 parent 9f38b70c
Exists in stable-spb-1.5

html_safe for error message and test fix

(cherry picked from commit 07f7b8503233c104b3559eb9e46b661d6ccf6382)
plugins/organization_ratings/test/functional/organization_ratings_plugin_profile_controller_test.rb
@@ -46,7 +46,7 @@ class OrganizationRatingsPluginProfileControllerTest < ActionController::TestCas @@ -46,7 +46,7 @@ class OrganizationRatingsPluginProfileControllerTest < ActionController::TestCas
46 test "do not create community_rating without a rate value" do 46 test "do not create community_rating without a rate value" do
47 post :new_rating, profile: @community.identifier, :comments => {:body => ""}, :organization_rating_value => nil 47 post :new_rating, profile: @community.identifier, :comments => {:body => ""}, :organization_rating_value => nil
48 48
49 - assert_match "value: can't be blank", session[:notice] 49 + assert_tag :tag => 'div', :attributes => {:class => /errorExplanation/}, :content => /Value can't be blank/
50 end 50 end
51 51
52 test "do not create two ratings on Community when vote once config is true" do 52 test "do not create two ratings on Community when vote once config is true" do