Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change // style regexp to %r{}, to not confuse editors code highlighting

  • Loading branch information...
commit 59d52229f9ddd55a1cf0674c774a8aeb68300ccf 1 parent e51e9e2
@drogus drogus authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/test/generators/plugin_new_generator_test.rb
View
2  railties/test/generators/plugin_new_generator_test.rb
@@ -140,7 +140,7 @@ def test_dev_option
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
Please sign in to comment.
Something went wrong with that request. Please try again.