Commit 839aa735 authored by Valery Sizov's avatar Valery Sizov

fix notification tests

parent c940767f
......@@ -147,13 +147,12 @@ describe "Issues" do
click_button "Save"
end
it "should send valid email to user with email & password" do
it "should send valid email to user" do
click_button "Save"
issue = Issue.last
email = ActionMailer::Base.deliveries.last
email.subject.should have_content("New Issue was created")
email.body.should have_content(issue.title)
email.body.should have_content(issue.assignee.name)
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment