[Git][noosfero/noosfero][master] rails4: fixes call to deprecated assertion method

Larissa Reis gitlab at mg.gitlab.com
Wed Nov 18 12:24:30 BRST 2015


Larissa Reis pushed to branch master at Noosfero / noosfero


Commits:
75f13387 by Larissa Reis at 2015-11-18T11:23:03Z
rails4: fixes call to deprecated assertion method

- - - - -


3 changed files:

- plugins/newsletter/test/unit/newsletter_plugin_moderate_newsletter_test.rb
- plugins/newsletter/test/unit/newsletter_plugin_newsletter_test.rb
- plugins/organization_ratings/test/functional/organization_ratings_plugin_profile_controller_test.rb


Changes:

=====================================
plugins/newsletter/test/unit/newsletter_plugin_moderate_newsletter_test.rb
=====================================
--- a/plugins/newsletter/test/unit/newsletter_plugin_moderate_newsletter_test.rb
+++ b/plugins/newsletter/test/unit/newsletter_plugin_moderate_newsletter_test.rb
@@ -45,6 +45,6 @@ class NewsletterPluginModerateNewsletterTest < ActiveSupport::TestCase
     task.finish
     assert_match /First post/, NewsletterPlugin::NewsletterMailing.last.body
     assert_match /Second post/, NewsletterPlugin::NewsletterMailing.last.body
-    assert_not_match /Third post/, NewsletterPlugin::NewsletterMailing.last.body
+    assert_no_match /Third post/, NewsletterPlugin::NewsletterMailing.last.body
   end
 end


=====================================
plugins/newsletter/test/unit/newsletter_plugin_newsletter_test.rb
=====================================
--- a/plugins/newsletter/test/unit/newsletter_plugin_newsletter_test.rb
+++ b/plugins/newsletter/test/unit/newsletter_plugin_newsletter_test.rb
@@ -359,7 +359,7 @@ EOS
       :person => fast_create(Person))
 
     assert_match /<p style="text-align: left;">paragraph of news<\/p>/, post.body
-    assert_not_match /<p style="text-align: left;">paragraph of news<\/p>/, newsletter.body
+    assert_no_match /<p style="text-align: left;">paragraph of news<\/p>/, newsletter.body
   end
 
   should 'only include text for posts in HTML generated content' do
@@ -407,7 +407,7 @@ EOS
       :person => person)
 
     assert_match /First post/, NewsletterPlugin::Newsletter.last.body({post_ids: [post_1.id.to_s, post_3.id.to_s]})
-    assert_not_match /Second post/, NewsletterPlugin::Newsletter.last.body({post_ids: [post_1.id.to_s, post_3.id.to_s]})
+    assert_no_match /Second post/, NewsletterPlugin::Newsletter.last.body({post_ids: [post_1.id.to_s, post_3.id.to_s]})
     assert_match /Third post/, NewsletterPlugin::Newsletter.last.body({post_ids: [post_1.id.to_s, post_3.id.to_s]})
   end
 


=====================================
plugins/organization_ratings/test/functional/organization_ratings_plugin_profile_controller_test.rb
=====================================
--- 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
@@ -99,7 +99,7 @@ class OrganizationRatingsPluginProfileControllerTest < ActionController::TestCas
 
   test "Display unavailable rating message for users that must wait the rating cooldown time" do
     post :new_rating, profile: @community.identifier, :comments => {:body => ""}, :organization_rating_value => 3
-    assert_not_match(/The administrators set the minimum time of/, @response.body)
+    assert_no_match(/The administrators set the minimum time of/, @response.body)
     valid_rating = OrganizationRating.last
 
     post :new_rating, profile: @community.identifier, :comments => {:body => ""}, :organization_rating_value => 3



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/75f13387c60641e1863d67d7b154ee290486e7f2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20151118/2e50e18e/attachment.html>


More information about the Noosfero-dev mailing list