Sha256: 8302c6b003267862a328d94a1b8ba944330ba97264caac62a61b9f3fd6cae102
Contents?: true
Size: 472 Bytes
Versions: 6
Compression:
Stored size: 472 Bytes
Contents
require 'spec_helper_integration' module Doorkeeper describe ApplicationsController do context "when admin is not authenticated" do before(:each) do Doorkeeper.configuration.stub(:authenticate_admin => proc do redirect_to main_app.root_url end) end it "redirects as set in Doorkeeper.authenticate_admin" do get :index response.should redirect_to(controller.main_app.root_url) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems