I have my test controller using this type: describe CompanyController, type: :controller do
which allow me to skip authentication: before do allow(controller).to receive(:authenticate_client).and_return(true) allow(controller).to receive(:current_client).and_return(client) end How can I achieve using the same as above, but for request type? before do allow(controller).to receive(:authenticate_client).and_return(true) allow(controller).to receive(:current_client).and_return(client) end -- You received this message because you are subscribed to the Google Groups "rspec" group. To unsubscribe from this group and stop receiving emails from it, send an email to rspec+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/fbe7b1ae-7e75-47eb-a718-41d48bf5a9ban%40googlegroups.com.