1
0
Fork 0
mirror of https://github.com/heartcombo/simple_form.git synced 2022-11-09 12:19:26 -05:00

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

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