```ruby
if defined?(:ActiveRecord)
  RSpec::Matchers::OperatorMatcher.register(ActiveRecord::Relation, '=~', RSpec::Matchers::MatchArray)
end
```

Fix mistake in check to see if ActiveRecord is defined
user
```ruby
if defined?(ActiveRecord)
  RSpec::Matchers::OperatorMatcher.register(ActiveRecord::Relation, '=~', RSpec::Matchers::MatchArray)
end
```
assistant