Yea, it's Ruby magic. It will coerce and use the proper comparison based on the given input.

For ranges, it uses `between?`, for regexes, it uses `match`, and for strings it uses `==`. It's really just shorthand for:

```ruby
# pseudo
case expected
when String
    expected == actual
when Range
    expected.include?(actual)
when Regex
    actual =~ expected
end
```