mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Change // style regexp to %r{}, to not confuse editors code highlighting
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user