Permalink
Browse files

Merge pull request #1255 from flippingbits/master

Fix gemspec of full or mountable engines
  • Loading branch information...
2 parents a47a65f + 855d14d commit 72c7160d0d641e12562412ac0872c7452581e5e0 @josevalim josevalim committed May 24, 2011
@@ -4,6 +4,6 @@ Gem::Specification.new do |s|
s.name = "<%= name %>"
s.summary = "Insert <%= camelized %> summary."
s.description = "Insert <%= camelized %> description."
- s.files = Dir["lib/**/*"] + ["MIT-LICENSE", "Rakefile", "README.rdoc"]
+ s.files = Dir["{app,config,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.rdoc"]
s.version = "0.0.1"
end
@@ -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 72c7160

Please sign in to comment.