Permalink
Browse files

Merge pull request #3177 from arunagw/void_warnings_removed

possibly useless use of :: in void context Warning removed
  • Loading branch information...
2 parents 47a14a0 + e81c427 commit fe157a7475e825ae95fe73450f2c160b36a000e1 @josevalim josevalim committed Sep 30, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 railties/test/application/configuration_test.rb
View
8 railties/test/application/configuration_test.rb
@@ -306,7 +306,7 @@ def index
require "#{app_path}/config/environment"
require "mail"
- ActionMailer::Base
+ _ = ActionMailer::Base
assert_equal [::MyMailInterceptor], ::Mail.send(:class_variable_get, "@@delivery_interceptors")
end
@@ -319,7 +319,7 @@ def index
require "#{app_path}/config/environment"
require "mail"
- ActionMailer::Base
+ _ = ActionMailer::Base
assert_equal [::MyMailInterceptor, ::MyOtherMailInterceptor], ::Mail.send(:class_variable_get, "@@delivery_interceptors")
end
@@ -332,7 +332,7 @@ def index
require "#{app_path}/config/environment"
require "mail"
- ActionMailer::Base
+ _ = ActionMailer::Base
assert_equal [::MyMailObserver], ::Mail.send(:class_variable_get, "@@delivery_notification_observers")
end
@@ -345,7 +345,7 @@ def index
require "#{app_path}/config/environment"
require "mail"
- ActionMailer::Base
+ _ = ActionMailer::Base
assert_equal [::MyMailObserver, ::MyOtherMailObserver], ::Mail.send(:class_variable_get, "@@delivery_notification_observers")
end

0 comments on commit fe157a7

Please sign in to comment.