Commit 5cc78b4e88c7fd9f5bc741e7c71c1bf396b3035a
Committed by
Victor Costa
1 parent
ecf8756f
Exists in
theme-brasil-digital-from-staging
and in
4 other branches
rails4: fixes call to deprecated assertion method
Showing
3 changed files
with
4 additions
and
4 deletions
Show diff stats
plugins/newsletter/test/unit/newsletter_plugin_moderate_newsletter_test.rb
@@ -45,6 +45,6 @@ class NewsletterPluginModerateNewsletterTest < ActiveSupport::TestCase | @@ -45,6 +45,6 @@ class NewsletterPluginModerateNewsletterTest < ActiveSupport::TestCase | ||
45 | task.finish | 45 | task.finish |
46 | assert_match /First post/, NewsletterPlugin::NewsletterMailing.last.body | 46 | assert_match /First post/, NewsletterPlugin::NewsletterMailing.last.body |
47 | assert_match /Second post/, NewsletterPlugin::NewsletterMailing.last.body | 47 | assert_match /Second post/, NewsletterPlugin::NewsletterMailing.last.body |
48 | - assert_not_match /Third post/, NewsletterPlugin::NewsletterMailing.last.body | 48 | + assert_no_match /Third post/, NewsletterPlugin::NewsletterMailing.last.body |
49 | end | 49 | end |
50 | end | 50 | end |
plugins/newsletter/test/unit/newsletter_plugin_newsletter_test.rb
@@ -359,7 +359,7 @@ EOS | @@ -359,7 +359,7 @@ EOS | ||
359 | :person => fast_create(Person)) | 359 | :person => fast_create(Person)) |
360 | 360 | ||
361 | assert_match /<p style="text-align: left;">paragraph of news<\/p>/, post.body | 361 | assert_match /<p style="text-align: left;">paragraph of news<\/p>/, post.body |
362 | - assert_not_match /<p style="text-align: left;">paragraph of news<\/p>/, newsletter.body | 362 | + assert_no_match /<p style="text-align: left;">paragraph of news<\/p>/, newsletter.body |
363 | end | 363 | end |
364 | 364 | ||
365 | should 'only include text for posts in HTML generated content' do | 365 | should 'only include text for posts in HTML generated content' do |
@@ -407,7 +407,7 @@ EOS | @@ -407,7 +407,7 @@ EOS | ||
407 | :person => person) | 407 | :person => person) |
408 | 408 | ||
409 | assert_match /First post/, NewsletterPlugin::Newsletter.last.body({post_ids: [post_1.id.to_s, post_3.id.to_s]}) | 409 | assert_match /First post/, NewsletterPlugin::Newsletter.last.body({post_ids: [post_1.id.to_s, post_3.id.to_s]}) |
410 | - assert_not_match /Second post/, NewsletterPlugin::Newsletter.last.body({post_ids: [post_1.id.to_s, post_3.id.to_s]}) | 410 | + assert_no_match /Second post/, NewsletterPlugin::Newsletter.last.body({post_ids: [post_1.id.to_s, post_3.id.to_s]}) |
411 | assert_match /Third post/, NewsletterPlugin::Newsletter.last.body({post_ids: [post_1.id.to_s, post_3.id.to_s]}) | 411 | assert_match /Third post/, NewsletterPlugin::Newsletter.last.body({post_ids: [post_1.id.to_s, post_3.id.to_s]}) |
412 | end | 412 | end |
413 | 413 |
plugins/organization_ratings/test/functional/organization_ratings_plugin_profile_controller_test.rb
@@ -99,7 +99,7 @@ class OrganizationRatingsPluginProfileControllerTest < ActionController::TestCas | @@ -99,7 +99,7 @@ class OrganizationRatingsPluginProfileControllerTest < ActionController::TestCas | ||
99 | 99 | ||
100 | test "Display unavailable rating message for users that must wait the rating cooldown time" do | 100 | test "Display unavailable rating message for users that must wait the rating cooldown time" do |
101 | post :new_rating, profile: @community.identifier, :comments => {:body => ""}, :organization_rating_value => 3 | 101 | post :new_rating, profile: @community.identifier, :comments => {:body => ""}, :organization_rating_value => 3 |
102 | - assert_not_match(/The administrators set the minimum time of/, @response.body) | 102 | + assert_no_match(/The administrators set the minimum time of/, @response.body) |
103 | valid_rating = OrganizationRating.last | 103 | valid_rating = OrganizationRating.last |
104 | 104 | ||
105 | post :new_rating, profile: @community.identifier, :comments => {:body => ""}, :organization_rating_value => 3 | 105 | post :new_rating, profile: @community.identifier, :comments => {:body => ""}, :organization_rating_value => 3 |