m = Message.last
assert_equal user.id, m.from_user_id
assert_equal recipient_user.id, m.to_user_id
- assert_in_delta Time.now, m.sent_on, 2
+ assert_in_delta Time.now.utc, m.sent_on, 2
assert_equal "Test Message", m.title
assert_equal "Test message body", m.body
assert_equal "markdown", m.body_format
:message => { :title => "Test Message", :body => "Test message body" })
assert_response :success
assert_template "new"
- assert_select ".error", /wait a while/
+ assert_select ".alert.alert-danger", /wait a while/
end
end
end