This is the correct way to assert for when the view renders a partial with a given name. As identified by the `:partial` key passed to the `assert_template` call.
### A Fuller Functional Test Example
### Testing `flash` notices
Here's another example that uses `flash`, `assert_redirected_to`, and `assert_difference`:
If you remember from earlier one of the Four Hashes of the Apocalypse was `flash`.
We want to add a `flash` message to our blog application whenever someone
successfully creates a new Article.
Let's start by adding this assertion to our `test_should_create_article` test:
```ruby
test"should create article"do
assert_difference('Article.count')do
post:create,article: {title: 'Hi',body: 'This is my first article.'}
Testing the response to your request by asserting the presence of key HTML elements and their content is a useful way to test the views of your application. The `assert_select` assertion allows you to do this by using a simple yet powerful syntax.