aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/validations/exclusion.rb
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-12-10 11:58:41 +0900
committerYuji Yaginuma <yuuji.yaginuma@gmail.com>2017-12-10 13:00:12 +0900
commitcf0fcbe7f6fd52b3455af99b61ef2c40e6a0062e (patch)
treebfe79dee0868f4a4d656d2a9bbfdb68ab9ac5d0d /activemodel/lib/active_model/validations/exclusion.rb
parent1b24fb213b820ebca29eb1d38efb07a410c7afaa (diff)
downloadrails-cf0fcbe7f6fd52b3455af99b61ef2c40e6a0062e.tar.gz
rails-cf0fcbe7f6fd52b3455af99b61ef2c40e6a0062e.tar.bz2
rails-cf0fcbe7f6fd52b3455af99b61ef2c40e6a0062e.zip
Reset schema cache after test
Currently, `test_copy_table_with_composite_primary_keys` test fails depending on execution order. The reproduction step is as follows. ``` $ ARCONN=sqlite3_mem bin/test -w -n "/^(?:CalculationsTest#(?:test_#skip_query_cache\\!_for_a_simple_calculation)|PrimaryKeyAnyTypeTest#(?:test_any_type_primary_key)|ActiveRecord::ConnectionAdapters::SQLite3AdapterTest#(?:test_copy_table_with_composite_primary_keys))$/" --seed 41545 ``` The column info is cached by `PrimaryKeyAnyTypeTest#test_any_type_primary_key`, and the test seems to have failed due to the influence. So clear cache after testing so as not to affect other tests. Related: https://travis-ci.org/rails/rails/jobs/313730163#L1788
Diffstat (limited to 'activemodel/lib/active_model/validations/exclusion.rb')
0 files changed, 0 insertions, 0 deletions