ruby/ruby — pull request #171 by headius (2012-08-27 16:35:27+00:00)
Title: Add test for invalid attribute names.

For http://jira.codehaus.org/browse/JRUBY-6865 we discovered JRuby allows attributes to be named like "foo?" when passed to attr_accessor. A fix is going into JRuby 1.7.0.RC1, but there did not appear to be a test for invalid attr names in MRI.

This pull request adds a test. I was not exhaustive, but I covered a few key cases including the "foo?" form.