Use ActionDispatch::TestRequest in NotificationSerializer spec
This commit is contained in:
parent
b61536ff06
commit
ca8974d4a0
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ describe NotificationSerializer do
|
|||
|
||||
before do
|
||||
allow(notifications_controller).to receive(:current_user).and_return(notification.recipient)
|
||||
notifications_controller.request = ActionController::TestRequest.new(host: AppConfig.pod_uri)
|
||||
notifications_controller.request = ActionDispatch::TestRequest.new(host: AppConfig.pod_uri)
|
||||
end
|
||||
|
||||
let(:notification) { FactoryGirl.create(:notification) }
|
||||
|
|
|
|||
Loading…
Reference in a new issue