aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test/base_test.rb
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2010-05-18 21:47:24 -0400
committerJosé Valim <jose.valim@gmail.com>2010-05-19 10:18:36 +0200
commitb4629528866446aa59f663a1162edbdacee85600 (patch)
treed68a0f440d552285adf99b462b8bde39d346aaa6 /actionmailer/test/base_test.rb
parentb753b4a076d7067efccbd1ad384829f77e62a064 (diff)
downloadrails-b4629528866446aa59f663a1162edbdacee85600.tar.gz
rails-b4629528866446aa59f663a1162edbdacee85600.tar.bz2
rails-b4629528866446aa59f663a1162edbdacee85600.zip
Use better assertion methods for testing
[#4645 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionmailer/test/base_test.rb')
-rw-r--r--actionmailer/test/base_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionmailer/test/base_test.rb b/actionmailer/test/base_test.rb
index 5506d62d6a..54bf3de6af 100644
--- a/actionmailer/test/base_test.rb
+++ b/actionmailer/test/base_test.rb
@@ -491,8 +491,8 @@ class BaseTest < ActiveSupport::TestCase
# Class level API with method missing
test "should respond to action methods" do
- assert BaseMailer.respond_to?(:welcome)
- assert BaseMailer.respond_to?(:implicit_multipart)
+ assert_respond_to BaseMailer, :welcome
+ assert_respond_to BaseMailer, :implicit_multipart
assert !BaseMailer.respond_to?(:mail)
assert !BaseMailer.respond_to?(:headers)
end