Improve test method
Improve test method

- allow different operators & attributes for use with other tests
- replace `send("quoted_#{value}”)` with `quote(value)`
- cache #expected_query to a local var

laserlemon/ransack,avit/ransack,Eric-Guo/ransack,johan--/ransack,mariorcardoso/ransack,Mario245/ransack,martndemus/ransack,guilleva/ransack,reinteractive/ransack,outstand/ransack,AndrewSwerlick/ransack,nagyt234/ransack,activerecord-hackery/ransack,roman-franko/ransack