Improve spec of Feed and UserTrackingConcern (#5367)
This commit is contained in:
parent
dc91fd482a
commit
3283868e28
2 changed files with 34 additions and 8 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue