public
Rubygem
Fork of thoughtbot/shoulda
Description: Makes tests easy on the fingers and the eyes
Homepage: http://www.thoughtbot.com/projects/shoulda
Clone URL: git://github.com/technicalpickles/shoulda.git
documentation fixes


git-svn-id: https://svn.thoughtbot.com/plugins/shoulda/trunk@491 
7bbfaf0e-4d1d-0410-9690-a8bb5f8ef2aa
tsaleh (author)
Thu May 01 06:49:58 -0700 2008
commit  7b7c11859bb146517d5e638f01da02423900fd0d
tree    d1db8e944fde378bf18e2b23b1699ce936136fb2
parent  fd0df01f1a3f29e8225d403b296ab91b9b6055d6
...
77
78
79
80
 
81
82
83
84
85
 
86
87
88
 
89
90
91
92
 
 
93
94
95
...
77
78
79
 
80
81
82
83
84
 
85
86
87
 
88
89
90
 
 
91
92
93
94
95
0
@@ -77,19 +77,19 @@ module ThoughtBot # :nodoc:
0
         assert obj.valid?, "Errors: #{pretty_error_messages obj}"
0
       end
0
       
0
- # Asserts that an email was delivered. Can take a blog that can further
0
+ # Asserts that an email was delivered. Can take a block that can further
0
       # narrow down the types of emails you're expecting.
0
       #
0
       # assert_sent_email
0
       #
0
- # passes if ActionMailer::Base.deliveries has an email
0
+ # Passes if ActionMailer::Base.deliveries has an email
0
       #
0
       # assert_sent_email do |email|
0
- # email.subject =~ /hi there/ && email.to == 'none@none.com'
0
+ # email.subject =~ /hi there/ && email.to.include?('none@none.com')
0
       # end
0
       #
0
- # passes if there is an email with subject containing 'hi there' and
0
- # recipient equal to 'none@none.com'
0
+ # Passes if there is an email with subject containing 'hi there' and
0
+ # 'none@none.com' as one of the recipients.
0
       #
0
       def assert_sent_email
0
         emails = ActionMailer::Base.deliveries

Comments

    No one has commented yet.