docbrown/spec/support
rhymes 5e9867ec56 Simplify AnalyticsService code (#2308)
* Add basic tests for Analytics service

* User/Organization are always required

* Add some data to the test

* Use queries and date times

* Fix AnalyticsService interface in the controller

* s/HTTP_API_KEY/api-key

* Defend against nils and support datetime objects

* Update app/services/analytics_service.rb

Co-Authored-By: rhymes <rhymesete@gmail.com>

* Use SQL sum, not Rails sum

* Group average_read_time

* Use SQL, not Rails

* Use ISO date

* Fix specs
2019-04-04 16:07:57 -04:00
..
fixtures Upgrade Rails to 5.2.3 (#1408) 2019-04-03 13:08:59 -04:00
initializers Migrate feature test to system test (#2301) 2019-04-04 12:15:10 -04:00
api_analytics_shared_examples.rb Simplify AnalyticsService code (#2308) 2019-04-04 16:07:57 -04:00
background_jobs.rb Improve specs (#1693) 2019-02-04 15:56:00 -04: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
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