Commit 67887fc5ac3a71ec203fd021bbcb72621ff4601f
1 parent
9f38b70c
Exists in
stable-spb-1.5
html_safe for error message and test fix
(cherry picked from commit 07f7b8503233c104b3559eb9e46b661d6ccf6382)
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
plugins/organization_ratings/test/functional/organization_ratings_plugin_profile_controller_test.rb
... | ... | @@ -46,7 +46,7 @@ class OrganizationRatingsPluginProfileControllerTest < ActionController::TestCas |
46 | 46 | test "do not create community_rating without a rate value" do |
47 | 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 | 50 | end |
51 | 51 | |
52 | 52 | test "do not create two ratings on Community when vote once config is true" do | ... | ... |