mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #6109 from carlosantoniodasilva/fix-build
Build fix for plugin new generator change
This commit is contained in:
commit
c0a7038412
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue