Permalink
Browse files

Add test for gemspec of the generated engine

  • Loading branch information...
1 parent e3d7751 commit 855d14dd945c6d341242a0d8fd48cb4d424af8d1 Stefan Sprenger committed May 24, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 railties/test/generators/plugin_new_generator_test.rb
View
6 railties/test/generators/plugin_new_generator_test.rb
@@ -169,6 +169,12 @@ def test_create_mountable_application_with_mountable_option
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"

0 comments on commit 855d14d

Please sign in to comment.