diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-01-20 13:25:33 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-01-20 13:30:12 +0100 |
commit | 7675364fe0f51d539fb35eb005dfba3ca521ea47 (patch) | |
tree | 4421098c376a07be2307e01a880d0843fb5cd8da /activerecord/test/cases/attribute_decorators_test.rb | |
parent | 6b2be718f69e73eb960a08898db517fc2f301df6 (diff) | |
download | rails-7675364fe0f51d539fb35eb005dfba3ca521ea47.tar.gz rails-7675364fe0f51d539fb35eb005dfba3ca521ea47.tar.bz2 rails-7675364fe0f51d539fb35eb005dfba3ca521ea47.zip |
tests, use `drop_table if_exists: true` in our test suite.
Diffstat (limited to 'activerecord/test/cases/attribute_decorators_test.rb')
-rw-r--r-- | activerecord/test/cases/attribute_decorators_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/attribute_decorators_test.rb b/activerecord/test/cases/attribute_decorators_test.rb index 53bd58e22e..9ad02ffae8 100644 --- a/activerecord/test/cases/attribute_decorators_test.rb +++ b/activerecord/test/cases/attribute_decorators_test.rb @@ -28,7 +28,7 @@ module ActiveRecord teardown do return unless @connection - @connection.drop_table 'attribute_decorators_model' if @connection.table_exists? 'attribute_decorators_model' + @connection.drop_table 'attribute_decorators_model', if_exists: true Model.attribute_type_decorations.clear Model.reset_column_information end |