From 75f13387c60641e1863d67d7b154ee290486e7f2 Mon Sep 17 00:00:00 2001 From: Larissa Reis Date: Wed, 18 Nov 2015 11:23:03 -0300 Subject: [PATCH] rails4: fixes call to deprecated assertion method --- plugins/newsletter/test/unit/newsletter_plugin_moderate_newsletter_test.rb | 2 +- plugins/newsletter/test/unit/newsletter_plugin_newsletter_test.rb | 4 ++-- plugins/organization_ratings/test/functional/organization_ratings_plugin_profile_controller_test.rb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/newsletter/test/unit/newsletter_plugin_moderate_newsletter_test.rb b/plugins/newsletter/test/unit/newsletter_plugin_moderate_newsletter_test.rb index 02de440..649f55d 100644 --- 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 diff --git a/plugins/newsletter/test/unit/newsletter_plugin_newsletter_test.rb b/plugins/newsletter/test/unit/newsletter_plugin_newsletter_test.rb index 47bebd5..58af2d1 100644 --- 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 /

paragraph of news<\/p>/, post.body - assert_not_match /

paragraph of news<\/p>/, newsletter.body + assert_no_match /

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 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 1baa71e..17dfd9a 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 @@ -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 -- libgit2 0.21.2