rubinius/rubinius — pull request #1873 by kachick (2012-08-22 15:22:36+00:00)
Title: To MRI behaviors / When Regexp receive Symbol objects

## Example

### MRI

ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]

/symbol/ =~ :symbol # => 0
/symbol/.match :symbol # => #

### Rubinius

rubinius 2.0.0dev (1.9.3 af9f288d yyyy-mm-dd JI) [i686-pc-linux-gnu]

/symbol/ =~ :symbol # => TypeError: Coercion error: :symbol.to_str => String failed
/symbol/.match :symbol # => TypeError: Coercion error: :symbol.to_str => String failed

----------------------------------------

Suggestion
=========

Cast via Symbol#to_s, just before StringValue()