aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2012-05-01 19:34:29 -0700
committerSantiago Pastorino <santiago@wyeworks.com>2012-05-01 19:34:29 -0700
commitc0a7038412c60cf48274267f75bc4376e733dc69 (patch)
tree59af46326ef740f89e0478ee151afce1655f09b5 /railties/test
parenta06a84bf77082a7435973fa1b6c8254fb410f243 (diff)
parenta6c41601fe7d39320cc44091952e360ea2bae726 (diff)
downloadrails-c0a7038412c60cf48274267f75bc4376e733dc69.tar.gz
rails-c0a7038412c60cf48274267f75bc4376e733dc69.tar.bz2
rails-c0a7038412c60cf48274267f75bc4376e733dc69.zip
Merge pull request #6109 from carlosantoniodasilva/fix-build
Build fix for plugin new generator change
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/generators/plugin_new_generator_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/generators/plugin_new_generator_test.rb b/railties/test/generators/plugin_new_generator_test.rb
index 4bb5f04a79..6c31b80c7d 100644
--- a/railties/test/generators/plugin_new_generator_test.rb
+++ b/railties/test/generators/plugin_new_generator_test.rb
@@ -32,7 +32,7 @@ class PluginNewGeneratorTest < Rails::Generators::TestCase
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 @@ class PluginNewGeneratorTest < Rails::Generators::TestCase
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