rails/rails — pull request #8316 by roberto (2012-11-26 02:46:10+00:00)
Title: assert_template: validating option keys

`assert_template` is only handling the keys locals, partial, layout and count(thx @carlosantoniodasilva) , anything else never fails or passes, giving false positives.

```ruby
assert_template(foo: "bar") # it isn't raising anything and "passes"
assert_template(leiaute: "test") # misspelled option, same issue
```
Change: I've added `assert_valid_keys` to raise ArgumentError in those cases.

```ruby
assert_template(foo: "bar") # raises ArgumentError
assert_template(leiaute: "test") # raises ArgumentError
```

Thanks!