From 67887fc5ac3a71ec203fd021bbcb72621ff4601f Mon Sep 17 00:00:00 2001 From: Marcos Ronaldo Date: Mon, 30 May 2016 16:25:35 -0300 Subject: [PATCH] html_safe for error message and test fix --- plugins/organization_ratings/test/functional/organization_ratings_plugin_profile_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/organization_ratings/test/functional/organization_ratings_plugin_profile_controller_test.rb b/plugins/organization_ratings/test/functional/organization_ratings_plugin_profile_controller_test.rb index b02b15b..721abf5 100644 --- a/plugins/organization_ratings/test/functional/organization_ratings_plugin_profile_controller_test.rb +++ b/plugins/organization_ratings/test/functional/organization_ratings_plugin_profile_controller_test.rb @@ -46,7 +46,7 @@ class OrganizationRatingsPluginProfileControllerTest < ActionController::TestCas test "do not create community_rating without a rate value" do post :new_rating, profile: @community.identifier, :comments => {:body => ""}, :organization_rating_value => nil - assert_match "value: can't be blank", session[:notice] + assert_tag :tag => 'div', :attributes => {:class => /errorExplanation/}, :content => /Value can't be blank/ end test "do not create two ratings on Community when vote once config is true" do -- libgit2 0.21.2