0
0
Fork 0

Improve spec of Feed and UserTrackingConcern (#5367)

This commit is contained in:
Eugen Rochko 2017-10-13 11:00:11 +02:00 committed by GitHub
parent dc91fd482a
commit 3283868e28
2 changed files with 34 additions and 8 deletions

View file

@ -5,6 +5,7 @@ require 'rails_helper'
describe ApplicationController, type: :controller do
controller do
include UserTrackingConcern
def show
render plain: 'show'
end
@ -49,6 +50,7 @@ describe ApplicationController, type: :controller do
get :show
expect_updated_sign_in_at(user)
expect(Redis.current.get("account:#{user.account_id}:regeneration")).to eq 'true'
expect(RegenerationWorker).to have_received(:perform_async)
end