Remove test/tmp dir after running generator tests
This commit is contained in:
parent
961f5f577e
commit
dbf11d94ac
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue