diff options
author | José Valim <jose.valim@gmail.com> | 2011-06-21 11:18:50 -0300 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-06-21 11:24:06 -0300 |
commit | 5a26b886455a9fda846109dbcf4595b107e392bc (patch) | |
tree | fd9ada2b21b433ab7901dc51dc30c409bb98f37c /railties/test/isolation | |
parent | 354709fe89a4cb9b26a6c19d377408bab2a07590 (diff) | |
download | rails-5a26b886455a9fda846109dbcf4595b107e392bc.tar.gz rails-5a26b886455a9fda846109dbcf4595b107e392bc.tar.bz2 rails-5a26b886455a9fda846109dbcf4595b107e392bc.zip |
Create an :assets group in the Gemfile.
This group is required by default only on development and test
(you can change it on config/application.rb).
`rake assets:precompile` will automatically add the assets group
to Rails.groups (and consequently Bundler.require) and should work
transparently.
Diffstat (limited to 'railties/test/isolation')
-rw-r--r-- | railties/test/isolation/abstract_unit.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/test/isolation/abstract_unit.rb b/railties/test/isolation/abstract_unit.rb index 0a203fd4d0..685d1b154b 100644 --- a/railties/test/isolation/abstract_unit.rb +++ b/railties/test/isolation/abstract_unit.rb @@ -238,6 +238,10 @@ module TestHelpers end end + def remove_file(path) + FileUtils.rm_rf "#{app_path}/#{path}" + end + def controller(name, contents) app_file("app/controllers/#{name}_controller.rb", contents) end |