Add resque_spec to test queuing mail.
This commit is contained in:
parent
6617eaaf9b
commit
5303cc285a
6 changed files with 13 additions and 2 deletions
|
@ -133,7 +133,9 @@ describe "Issues" do
|
|||
end
|
||||
|
||||
it "should send valid email to user" do
|
||||
click_button "Submit new issue"
|
||||
with_resque do
|
||||
click_button "Submit new issue"
|
||||
end
|
||||
issue = Issue.last
|
||||
email = ActionMailer::Base.deliveries.last
|
||||
email.subject.should have_content("New Issue was created")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue