Skip to content

Instantly share code, notes, and snippets.

@ramontayag
Created November 22, 2010 09:09
Show Gist options
  • Save ramontayag/709709 to your computer and use it in GitHub Desktop.
Save ramontayag/709709 to your computer and use it in GitHub Desktop.
... # ...
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
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