Created
November 22, 2010 09:09
-
-
Save ramontayag/709709 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... # ... | |
And I should see "You have requested for a condition report, and will be emailed one as soon as we are able to process your request." # features/step_definitions/web_steps.rb:107 | |
And I should receive an email # features/step_definitions/email_steps.rb:51 | |
expected: 1, | |
got: 0 (using ==) (RSpec::Expectations::ExpectationNotMetError) | |
./features/step_definitions/email_steps.rb:52:in `/^(?:I|they|"([^"]*?)") should receive (an|no|\d+) emails?$/' | |
features/request_for_condition_reports.feature:18:in `And I should receive an email' | |
When I open the email # features/step_definitions/email_steps.rb:72 | |
Then I should see "Ramon ([email protected]) wants a condition report for" in the email body |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ReportRequest < ActiveRecord::Base | |
... | |
private | |
def notify_admin | |
Mailer.condition_report_request_to_admin(self).deliver | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment