diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-10 18:03:10 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-10 18:03:10 -0300 |
commit | f85942b4b0421bd8b8cafaa558b1ad2ff502c676 (patch) | |
tree | bee83ff31249f56ea8a811b17c3889b02c73c0f4 /railties/test/generators | |
parent | e1cb956c9dc18aa2b9237a50b6c639c77ce850dd (diff) | |
parent | 08b435e1bd2f7043afaafe2987bcfe4a2d62bd9b (diff) | |
download | rails-f85942b4b0421bd8b8cafaa558b1ad2ff502c676.tar.gz rails-f85942b4b0421bd8b8cafaa558b1ad2ff502c676.tar.bz2 rails-f85942b4b0421bd8b8cafaa558b1ad2ff502c676.zip |
Merge pull request #15056 from josemarluedke/single-quotes-on-plugin-gemfile
Change Gemfile’s double quotation marks in plugin generator
Diffstat (limited to 'railties/test/generators')
-rw-r--r-- | railties/test/generators/plugin_generator_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/test/generators/plugin_generator_test.rb b/railties/test/generators/plugin_generator_test.rb index 69ff23eb95..7180efee41 100644 --- a/railties/test/generators/plugin_generator_test.rb +++ b/railties/test/generators/plugin_generator_test.rb @@ -312,7 +312,7 @@ class PluginGeneratorTest < Rails::Generators::TestCase assert_no_file "bukkits.gemspec" assert_file "Gemfile" do |contents| assert_no_match('gemspec', contents) - assert_match(/gem "rails", "~> #{Rails.version}"/, contents) + assert_match(/gem 'rails', '~> #{Rails.version}'/, contents) assert_match_sqlite3(contents) assert_no_match(/# gem "jquery-rails"/, contents) end @@ -323,7 +323,7 @@ class PluginGeneratorTest < Rails::Generators::TestCase assert_no_file "bukkits.gemspec" assert_file "Gemfile" do |contents| assert_no_match('gemspec', contents) - assert_match(/gem "rails", "~> #{Rails.version}"/, contents) + assert_match(/gem 'rails', '~> #{Rails.version}'/, contents) assert_match_sqlite3(contents) end end @@ -416,9 +416,9 @@ protected def assert_match_sqlite3(contents) unless defined?(JRUBY_VERSION) - assert_match(/group :development do\n gem "sqlite3"\nend/, contents) + assert_match(/group :development do\n gem 'sqlite3'\nend/, contents) else - assert_match(/group :development do\n gem "activerecord-jdbcsqlite3-adapter"\nend/, contents) + assert_match(/group :development do\n gem 'activerecord-jdbcsqlite3-adapter'\nend/, contents) end end end |