diff options
author | Akira Matsuda & Kohei Suzuki <ronnie@dio.jp> | 2014-08-29 19:06:56 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2014-08-29 19:17:19 +0900 |
commit | 7447e0b9943bcd7ba99921c014c32927c2858343 (patch) | |
tree | ff35d8e9f48ecb72942c73302e25b41fc1c80dea /activerecord/test | |
parent | 42d5e785fe47d1217566c7f2dba8fc11d993b51e (diff) | |
download | rails-7447e0b9943bcd7ba99921c014c32927c2858343.tar.gz rails-7447e0b9943bcd7ba99921c014c32927c2858343.tar.bz2 rails-7447e0b9943bcd7ba99921c014c32927c2858343.zip |
Don't test PostgreSQL implementation details
Asserting that the message contains "QUERY PLAN" is enough for the adapter's test.
The plan may vary according to number of tuples etc. but that's out of our concern.
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/explain_test.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/explain_test.rb b/activerecord/test/cases/adapters/postgresql/explain_test.rb index 416f84cb38..19053b6732 100644 --- a/activerecord/test/cases/adapters/postgresql/explain_test.rb +++ b/activerecord/test/cases/adapters/postgresql/explain_test.rb @@ -11,16 +11,13 @@ module ActiveRecord explain = Developer.where(:id => 1).explain assert_match %(EXPLAIN for: SELECT "developers".* FROM "developers" WHERE "developers"."id" = $1), explain assert_match %(QUERY PLAN), explain - assert_match %(Index Scan using developers_pkey on developers), explain end def test_explain_with_eager_loading explain = Developer.where(:id => 1).includes(:audit_logs).explain assert_match %(QUERY PLAN), explain assert_match %(EXPLAIN for: SELECT "developers".* FROM "developers" WHERE "developers"."id" = $1), explain - assert_match %(Index Scan using developers_pkey on developers), explain assert_match %(EXPLAIN for: SELECT "audit_logs".* FROM "audit_logs" WHERE "audit_logs"."developer_id" IN (1)), explain - assert_match %(Seq Scan on audit_logs), explain end end end |