Just add `()` in the `assert_no_match` method call:

```ruby
assert_no_match(/ActiveRecord/, contents)
```