diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-09-16 16:34:36 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-16 16:34:36 -0300 |
commit | 84650022d574d24d6adea6ad941ec3ca57d2a2f0 (patch) | |
tree | 07318ea156bb21b19042fe2bebc7a713ab0a02e7 /activerecord/test/cases/base_test.rb | |
parent | c5c1a29be7d435fe569c9e15c22db65768b50318 (diff) | |
parent | a9aed2ac94d2e0d1a233a3c193985ae78d7e79e9 (diff) | |
download | rails-84650022d574d24d6adea6ad941ec3ca57d2a2f0.tar.gz rails-84650022d574d24d6adea6ad941ec3ca57d2a2f0.tar.bz2 rails-84650022d574d24d6adea6ad941ec3ca57d2a2f0.zip |
Merge pull request #26516 from grosser/grosser/assert
improve error message when include assertions fail
Diffstat (limited to 'activerecord/test/cases/base_test.rb')
-rw-r--r-- | activerecord/test/cases/base_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb index c03c3f9546..fafa144c6f 100644 --- a/activerecord/test/cases/base_test.rb +++ b/activerecord/test/cases/base_test.rb @@ -1519,7 +1519,7 @@ class BasicsTest < ActiveRecord::TestCase test "ignored columns are not present in columns_hash" do cache_columns = Developer.connection.schema_cache.columns_hash(Developer.table_name) assert_includes cache_columns.keys, "first_name" - refute_includes Developer.columns_hash.keys, "first_name" + assert_not_includes Developer.columns_hash.keys, "first_name" end test "ignored columns have no attribute methods" do |