Commit 75f13387c60641e1863d67d7b154ee290486e7f2
1 parent
cf8721e9
Exists in
master
and in
20 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 | 45 | task.finish |
46 | 46 | assert_match /First post/, NewsletterPlugin::NewsletterMailing.last.body |
47 | 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 | 49 | end |
50 | 50 | end | ... | ... |
plugins/newsletter/test/unit/newsletter_plugin_newsletter_test.rb
... | ... | @@ -359,7 +359,7 @@ EOS |
359 | 359 | :person => fast_create(Person)) |
360 | 360 | |
361 | 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 | 363 | end |
364 | 364 | |
365 | 365 | should 'only include text for posts in HTML generated content' do |
... | ... | @@ -407,7 +407,7 @@ EOS |
407 | 407 | :person => person) |
408 | 408 | |
409 | 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 | 411 | assert_match /Third post/, NewsletterPlugin::Newsletter.last.body({post_ids: [post_1.id.to_s, post_3.id.to_s]}) |
412 | 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 | 99 | |
100 | 100 | test "Display unavailable rating message for users that must wait the rating cooldown time" do |
101 | 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 | 103 | valid_rating = OrganizationRating.last |
104 | 104 | |
105 | 105 | post :new_rating, profile: @community.identifier, :comments => {:body => ""}, :organization_rating_value => 3 | ... | ... |