docbrown/spec/support
Alex e40c28117b
Search ClassifiedListings backend code (#6348)
* Add search methods

* Add spec for new search methods

* Add QueryBuilder for ClassifiedListing

* Add QueryBuilder spec for ClassifiedListing

* Refact build_query in ClassifiedListings

* Refactor logic for filter and query conditions

* Refactor index_documents to helper_method

* Update elasticsearch helper for single objects

* Refactor specs from stubbing to record update

* Update search and specs for query_builder

* Refactor set_size

* Update Search::ClassifiedListing

- Add DEFAULT_PAGE constant
- ADD DEFAULT_PER_PAGE constant
- Add pagination

* Fix paging

* Add pagination specs

* Remove manual Array conversion for Array.wrap()

* Change guard clause to .key? for readability
2020-02-28 10:51:33 -05:00
..
fixtures Bump Twitter to 7.0 and refactor TwitterBot (#6246) [deploy] 2020-02-24 08:34:41 -05:00
initializers Add let_it_be_readonly to avoid updating variables (#5407) 2020-01-16 10:53:30 -05:00
api_analytics_shared_examples.rb Ignore User.organization_id (#6203) 2020-02-21 09:51:49 -05:00
elasticsearch_helpers.rb Search ClassifiedListings backend code (#6348) 2020-02-28 10:51:33 -05:00
omniauth_macros.rb Fix rubocop offenses (#1452) 2019-01-03 09:23:38 -05:00
shared_context.rb Code cleanups (#659) 2018-08-07 11:00:13 -04:00
sidekiq_test_helpers.rb Add worker: option to sidekiq_enqueued_jobs to return also jobs by worker (#5334) 2020-01-03 14:54:44 -05:00
stubs.rb Code cleanups (#659) 2018-08-07 11:00:13 -04:00
within_block_is_expected.rb Improve ArticlesController's authorization (#466) 2018-06-21 14:18:32 -04:00