Commit 5b6960d3bbfe9b5787e8610d540b5a04b8cdff6e
Committed by
Daniela Feitosa
1 parent
1c1f6baf
Exists in
master
and in
28 other branches
Fixed 1 exception_notification integration test that was failing
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
test/integration/exception_notification_test.rb
@@ -9,9 +9,9 @@ class ExceptionNotificationTest < ActionController::IntegrationTest | @@ -9,9 +9,9 @@ class ExceptionNotificationTest < ActionController::IntegrationTest | ||
9 | ActionMailer::Base.delivery_method = :test | 9 | ActionMailer::Base.delivery_method = :test |
10 | ActionMailer::Base.perform_deliveries = true | 10 | ActionMailer::Base.perform_deliveries = true |
11 | ActionMailer::Base.deliveries = [] | 11 | ActionMailer::Base.deliveries = [] |
12 | - AccountController.any_instance.stubs(:signup).raises(RuntimeError) | ||
13 | - AccountController.any_instance.stubs(:local_request?).returns(false) | ||
14 | - AccountController.any_instance.stubs(:consider_all_requests_local).returns(false) | 12 | + [ProfileController, AccountController].each{|klass| klass.any_instance.stubs(:signup).raises(RuntimeError)} |
13 | + [ProfileController, AccountController].each{|klass| klass.any_instance.stubs(:local_request?).returns(false)} | ||
14 | + [ProfileController, AccountController].each{|klass| klass.any_instance.stubs(:consider_all_requests_local).returns(false)} | ||
15 | end | 15 | end |
16 | 16 | ||
17 | should 'deliver mail notification about exceptions' do | 17 | should 'deliver mail notification about exceptions' do |