Use the cheap Defer queue as opposed to sidekiq for view tracking.

This commit is contained in:
Sam
2014-06-12 11:29:29 +10:00
parent 8ff4536a08
commit 76166567fb
3 changed files with 14 additions and 23 deletions

View File

@ -660,6 +660,9 @@ describe TopicsController do
it 'shows the topic if valid api key is provided' do
get :show, topic_id: topic.id, slug: topic.slug, api_key: api_key.key
expect(response).to be_successful
topic.reload
# free test, only costs a reload
topic.views.should == 1
end
it 'returns 403 for an invalid key' do