ransack
ransack copied to clipboard
Failing spec is marked pending
This spec or related code needs correction
Pending: (Failures listed here are expected and do not affect your suite's status)
1) Ransack::Search#build preserves (inverts) default scope and conditions for negative subqueries
# spec should pass, but I do not know how/where to fix lib code
Failure/Error: expect(s.result.to_sql).to include 'default_scope'
expected "SELECT `people`.* FROM `people` WHERE `people`.`id` NOT IN (SELECT `articles`.`person_id` FROM `arti...es`.`person_id` = `people`.`id` AND NOT (`articles`.`title` != 'Test')) ORDER BY `people`.`id` DESC" to include "default_scope"
# ./spec/ransack/search_spec.rb:183:in `block (3 levels) in <module:Ransack>'