spec/controllers/application_controller_spec.rb in devise-guests-0.8.0 vs spec/controllers/application_controller_spec.rb in devise-guests-0.8.1
- old
+ new
@@ -33,9 +33,10 @@
allow(guest_user).to receive(:destroy)
allow(@controller).to receive(:guest_user) { guest_user }
allow(@controller).to receive(:session) { {guest_user_id: 123} }
expect(@controller).to receive(:run_callbacks).with(:logging_in_user).and_call_original
+ expect(@controller).to receive(:transfer_guest_to_user).and_call_original
@controller.current_or_guest_user
end
it "should define a 'logging_in' callback" do