Permalink
Browse files

Merge pull request #6109 from carlosantoniodasilva/fix-build

Build fix for plugin new generator change
  • Loading branch information...
2 parents a06a84b + a6c4160 commit c0a7038412c60cf48274267f75bc4376e733dc69 @spastorino spastorino committed May 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/test/generators/plugin_new_generator_test.rb
@@ -32,7 +32,7 @@ def test_invalid_plugin_name_raises_an_error
content = capture(:stderr){ run_generator [File.join(destination_root, "things4.3")] }
assert_equal "Invalid plugin name things4.3. Please give a name which use only alphabetic or numeric or \"_\" characters.\n", content
-
+
content = capture(:stderr){ run_generator [File.join(destination_root, "43things")] }
assert_equal "Invalid plugin name 43things. Please give a name which does not start with numbers.\n", content
end
@@ -211,7 +211,7 @@ def test_create_mountable_application_with_mountable_option
def test_creating_gemspec
run_generator
assert_file "bukkits.gemspec", /s.name\s+= "bukkits"/
- assert_file "bukkits.gemspec", /s.files = Dir\["\{app,config,db,lib\}\/\*\*\/\*"\]/
+ assert_file "bukkits.gemspec", /s.files = Dir\["\{app,config,db,lib\}\/\*\*\/\*", "MIT-LICENSE", "Rakefile", "README\.rdoc"\]/
assert_file "bukkits.gemspec", /s.test_files = Dir\["test\/\*\*\/\*"\]/
assert_file "bukkits.gemspec", /s.version\s+ = Bukkits::VERSION/
end

0 comments on commit c0a7038

Please sign in to comment.