diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-10-20 20:45:21 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2010-11-02 17:14:50 +0100 |
commit | 59d52229f9ddd55a1cf0674c774a8aeb68300ccf (patch) | |
tree | f21e1241e704422b793a71a6f3d893ce518aa16a /railties/test/generators | |
parent | e51e9e2db0359355feef71e735a1f9cb764ec929 (diff) | |
download | rails-59d52229f9ddd55a1cf0674c774a8aeb68300ccf.tar.gz rails-59d52229f9ddd55a1cf0674c774a8aeb68300ccf.tar.bz2 rails-59d52229f9ddd55a1cf0674c774a8aeb68300ccf.zip |
Change // style regexp to %r{}, to not confuse editors code highlighting
Diffstat (limited to 'railties/test/generators')
-rw-r--r-- | railties/test/generators/plugin_new_generator_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/generators/plugin_new_generator_test.rb b/railties/test/generators/plugin_new_generator_test.rb index 638ff8dce5..8f230525bc 100644 --- a/railties/test/generators/plugin_new_generator_test.rb +++ b/railties/test/generators/plugin_new_generator_test.rb @@ -140,7 +140,7 @@ class PluginNewGeneratorTest < Rails::Generators::TestCase def test_edge_option generator([destination_root], :edge => true).expects(:run).with("#{@bundle_command} install") silence(:stdout){ generator.invoke_all } - assert_file 'Gemfile', /^gem\s+["']rails["'],\s+:git\s+=>\s+["']#{Regexp.escape("git://github.com/rails/rails.git")}["']$/ + assert_file 'Gemfile', %r{^gem\s+["']rails["'],\s+:git\s+=>\s+["']#{Regexp.escape("git://github.com/rails/rails.git")}["']$} end protected |