1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix tests.

This commit is contained in:
José Valim 2011-04-25 11:14:39 +02:00
parent 8d00dfca7f
commit 2bc48561d5
2 changed files with 3 additions and 7 deletions

View file

@ -13,11 +13,13 @@ module Rails
directory "app"
template "#{app_templates_dir}/app/views/layouts/application.html.erb.tt",
"app/views/layouts/#{name}/application.html.erb"
empty_directory_with_gitkeep "app/assets/images"
elsif full?
empty_directory_with_gitkeep "app/models"
empty_directory_with_gitkeep "app/controllers"
empty_directory_with_gitkeep "app/views"
empty_directory_with_gitkeep "app/helpers"
empty_directory_with_gitkeep "app/assets/images"
end
end
@ -135,12 +137,6 @@ task :default => :test
end
end
def images
if mountable?
empty_directory_with_gitkeep "app/assets/images"
end
end
def script(force = false)
directory "script", :force => force do |content|
"#{shebang}\n" + content

View file

@ -140,7 +140,7 @@ class PluginNewGeneratorTest < Rails::Generators::TestCase
run_generator [destination_root, "--full", "--skip_active_record"]
FileUtils.cd destination_root
`bundle install`
assert_match(/2 tests, 2 assertions, 0 failures, 0 errors/, `bundle exec rake test`)
assert_match(/1 tests, 1 assertions, 0 failures, 0 errors/, `bundle exec rake test`)
end
def test_creating_engine_in_full_mode