diff options
author | José Valim <jose.valim@gmail.com> | 2011-05-24 00:37:57 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-05-24 00:37:57 -0700 |
commit | 72c7160d0d641e12562412ac0872c7452581e5e0 (patch) | |
tree | 3226b0887ad03455ffab9d48b1cba7f12fe2303c /railties/test/generators/plugin_new_generator_test.rb | |
parent | a47a65f105bc7bac5fe7995a664f8f6afaa339c1 (diff) | |
parent | 855d14dd945c6d341242a0d8fd48cb4d424af8d1 (diff) | |
download | rails-72c7160d0d641e12562412ac0872c7452581e5e0.tar.gz rails-72c7160d0d641e12562412ac0872c7452581e5e0.tar.bz2 rails-72c7160d0d641e12562412ac0872c7452581e5e0.zip |
Merge pull request #1255 from flippingbits/master
Fix gemspec of full or mountable engines
Diffstat (limited to 'railties/test/generators/plugin_new_generator_test.rb')
-rw-r--r-- | railties/test/generators/plugin_new_generator_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/test/generators/plugin_new_generator_test.rb b/railties/test/generators/plugin_new_generator_test.rb index 297ac5d238..49537d6511 100644 --- a/railties/test/generators/plugin_new_generator_test.rb +++ b/railties/test/generators/plugin_new_generator_test.rb @@ -169,6 +169,12 @@ class PluginNewGeneratorTest < Rails::Generators::TestCase assert_file "app/views/layouts/bukkits/application.html.erb", /<title>Bukkits<\/title>/ end + def test_creating_gemspec + assert_file "bukkits.gemspec", /s.name = "bukkits"/ + assert_file "bukkits.gemspec", /s.files = Dir["{app,config,lib}\/**\/*"]/ + assert_file "bukkits.gemspec", /s.version = "0.0.1"/ + end + def test_passing_dummy_path_as_a_parameter run_generator [destination_root, "--dummy_path", "spec/dummy"] assert_file "spec/dummy" |