ransack icon indicating copy to clipboard operation
ransack copied to clipboard

Failing spec is marked pending

Open scarroll32 opened this issue 2 years ago • 0 comments

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>'

scarroll32 avatar Jun 12 '22 08:06 scarroll32