Remove test/tmp dir after running generator tests

This commit is contained in:
Carlos Antonio da Silva 2012-01-26 10:55:36 -02:00
parent 961f5f577e
commit dbf11d94ac
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ class SimpleFormGeneratorTest < Rails::Generators::TestCase
tests SimpleForm::Generators::InstallGenerator
destination File.expand_path('../../tmp', __FILE__)
setup :prepare_destination
teardown { rm_rf(destination_root) }
test 'generates example locale file' do
run_generator
@ -26,4 +27,4 @@ class SimpleFormGeneratorTest < Rails::Generators::TestCase
assert_file "lib/templates/#{engine}/scaffold/_form.html.#{engine}"
end
end
end
end