mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix tests.
This commit is contained in:
parent
8d00dfca7f
commit
2bc48561d5
2 changed files with 3 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue