Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

small change to improve rdocs

git-svn-id: https://svn.thoughtbot.com/plugins/shoulda/trunk@489 7bbfaf0e-4d1d-0410-9690-a8bb5f8ef2aa
  • Loading branch information...
commit 6ac26e9da88e0863bf326430da7575b1b0036bfb 1 parent fa37ef0
tsaleh authored
Showing with 2 additions and 1 deletion.
  1. +1 −0  .gitignore
  2. +1 −1  lib/shoulda/general.rb
View
1  .gitignore
@@ -1,2 +1,3 @@
test/rails_root/log/*.log
test/rails_root/vendor/plugins/shoulda
+doc
View
2  lib/shoulda/general.rb
@@ -106,7 +106,7 @@ def assert_sent_email
emails = ActionMailer::Base.deliveries
assert !emails.empty?, "No emails were sent"
if block_given?
- matching_emails = emails.select {|e| yield e }
+ matching_emails = emails.select {|email| yield email }
assert !matching_emails.empty?, "None of the emails matched."
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.