diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-12-19 08:35:48 -0800 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-12-19 08:35:48 -0800 |
commit | f70e94cbd2c1b84a14c14d96d220213b16f60986 (patch) | |
tree | 94bb321b9993a04c15fc2864dccdfb275f21b7d4 /activesupport/test | |
parent | 3b10ad08742b68a83ea1bb347f842a295dc63b93 (diff) | |
parent | 4cb30d9f8b091c9eb1d7bf90c2974b96ea3a59f8 (diff) | |
download | rails-f70e94cbd2c1b84a14c14d96d220213b16f60986.tar.gz rails-f70e94cbd2c1b84a14c14d96d220213b16f60986.tar.bz2 rails-f70e94cbd2c1b84a14c14d96d220213b16f60986.zip |
Merge pull request #13406 from hincupetru/master
Fixed configurable.rb regular expression name check
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/configurable_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activesupport/test/configurable_test.rb b/activesupport/test/configurable_test.rb index d00273a028..cb11a4a867 100644 --- a/activesupport/test/configurable_test.rb +++ b/activesupport/test/configurable_test.rb @@ -95,6 +95,12 @@ class ConfigurableActiveSupport < ActiveSupport::TestCase config_accessor "invalid attribute name" end end + assert_raises NameError do + Class.new do + include ActiveSupport::Configurable + config_accessor "invalid attribute\nname" + end + end end def assert_method_defined(object, method) |