fix notification tests

This commit is contained in:
Valery Sizov 2011-12-18 18:55:32 +02:00
parent c940767f2a
commit 839aa7357a

View file

@ -147,13 +147,12 @@ describe "Issues" do
click_button "Save" click_button "Save"
end end
it "should send valid email to user with email & password" do it "should send valid email to user" do
click_button "Save" click_button "Save"
issue = Issue.last issue = Issue.last
email = ActionMailer::Base.deliveries.last email = ActionMailer::Base.deliveries.last
email.subject.should have_content("New Issue was created") email.subject.should have_content("New Issue was created")
email.body.should have_content(issue.title) email.body.should have_content(issue.title)
email.body.should have_content(issue.assignee.name)
end end
end end