Skip to content

Commit

Permalink
Add test for gemspec of the generated engine
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Sprenger committed May 24, 2011
1 parent e3d7751 commit 855d14d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions railties/test/generators/plugin_new_generator_test.rb
Expand Up @@ -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"
Expand Down

0 comments on commit 855d14d

Please sign in to comment.