Commit Graph

32 Commits

Author SHA1 Message Date
Jon Atack ae237535c7 Naming is hard 😬😅 2016-09-30 19:40:12 +02:00
Jon Atack bb2af903d4 Final(?) readability/naming/local vars pass over tests for PR #726 2016-09-30 19:14:21 +02:00
Jon Atack 4c98866d5c Add tests: changing an arrow should respect prev change of other
Follow-up to PR #726.
2016-09-30 18:44:24 +02:00
Jon Atack f75504f079 Add tests to PR #726 that change one up and down arrow only
TODO: Avoid cloning and restoring Ransack.options in each test.
2016-09-29 16:32:51 +02:00
Jon Atack f73dd6af8e Minor tests cleanup from PR #726 2016-09-29 16:05:58 +02:00
Jon Atack a5be55b328 Follow-up to PR #726, no need to freeze strings in tests.
[skip ci]
2016-09-29 15:45:25 +02:00
Jon Atack f7abc05c2e Documentation and formatting follow-up to PR #726 2016-09-29 15:17:30 +02:00
Garett Arrowood 208a222436 Add configuration test support for custom_arrows 2016-09-27 18:04:27 -04:00
Steve Richert e55e99fe89 Use class attributes properly so that inheritance is respected
This fixes two bugs:

1. Subclasses were not properly inheriting their parents' Ransack
   aliases in Mongoid because each class defined its very own set of
   aliases.
2. In Active Record, Ransack aliases were defined in such a way that the
   parent's (and grandparent's, etc.) aliases were overwritten by the
   child, meaning that all aliases were ultimately kept on
   ActiveRecord::Base. This has the unfortunate effect of enforcing
   uniqueness of Ransack alias names across all models rather than per
   model. Depending on the load order of models, earlier definitions of
   an alias in other models would be clobbered.
2016-08-26 13:48:59 -04:00
Steve Richert 9340582092 Remove "pending" from passing tests 2016-08-26 13:42:53 -04:00
Jon Atack 600892e132 Fix rspec-mocks `stub` deprecation warnings 2016-03-28 13:10:40 +02:00
Josef Šimánek 9e5faf4ab9 Support Mongoid 5. 2016-01-06 21:39:58 +01:00
Ray Zane e712ff1ce4 Allow creating aliases for ransack attributes 2015-12-11 18:34:47 -05:00
Jon Atack 914f7992fe Revert back to RSpec 2 until I get MongoDB tests working 2015-07-26 21:24:45 +02:00
Jon Atack 1d28118765 Fix mistake in previous commit 2015-07-26 21:07:33 +02:00
Jon Atack d296caa840 Upgrade Mongoid specs to RSpec 3 expect syntax 2015-07-26 20:49:21 +02:00
Michael Pavling 0abaab4b1e allowing ':wants_array' to be passed as 'false' in predicate options 2015-03-24 09:01:37 +00:00
Jon Atack ddf83a6d3d Cleanup
[skip ci]
2014-12-17 19:34:08 +01:00
Jon Atack 495f9b0c2e Remove 'binding.pry' from Mongoid test 2014-11-07 20:46:28 +01:00
Zhomart Mukhamejanov 7088c9e537 added specs: mongoid search by id 2014-11-02 11:20:08 -08:00
Zhomart Mukhamejanov b81bf44dc1 previous fix fixed correctly now 2014-10-06 14:21:22 -07:00
Zhomart Mukhamejanov 1fbbbaefd8 mongodb specs fixed for rails >= 4 2014-10-06 14:20:43 -07:00
Zhomart Mukhamejanov aff2151b10 added starts, ends 2014-08-02 20:37:22 -07:00
Zhomart Mukhamejanov b6574263f6 added more predication methods. 2014-08-02 17:00:42 -07:00
Zhomart Mukhamejanov b1f358a198 mongoid/context spec added 2014-08-02 14:52:46 -07:00
Zhomart Mukhamejanov 905f6a2fc2 added adapters/mongoid/base specs 2014-08-02 14:26:27 -07:00
Zhomart Mukhamejanov d2b02689cb added some features to ransack/mongoid 2014-08-02 14:25:52 -07:00
Zhomart Mukhamejanov 915205c02d added mongoid/node specs and sham,machinist 2014-08-02 11:08:51 -07:00
Zhomart Mukhamejanov 55d6b88de1 mongoid translate spec works 2014-08-02 10:38:40 -07:00
Zhomart Mukhamejanov 1799766abd added mongoid search specs 2014-08-02 10:33:51 -07:00
Zhomart Mukhamejanov 9e1204e179 added mongoid/predicate_spec 2014-08-01 21:06:56 -07:00
Zhomart Mukhamejanov 9a796f157e specs set up for mongoid 2014-08-01 02:04:54 -07:00