Sha256: f44b6f15d0f38ac6fd66b740aef22fe9cc42d3d830c9c6329ef54d40e22ed8e1
Contents?: true
Size: 494 Bytes
Versions: 1
Compression:
Stored size: 494 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 expect(response).to redirect_to(controller.main_app.root_url) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
couchkeeper-0.6.7 | spec/controllers/applications_controller_spec.rb |