Sha256: 3fad4945fa73d211b166362bd2c708a827d953c08eab0c88143e936dce43c726
Contents?: true
Size: 784 Bytes
Versions: 5
Compression:
Stored size: 784 Bytes
Contents
require 'spec_helper' describe ActiveAdmin::Resource, "authorization" do let(:app){ ActiveAdmin::Application.new } let(:namespace){ ActiveAdmin::Namespace.new(app, :admin) } let(:auth){ double } describe "authorization_adapter" do it "should return AuthorizationAdapter by default" do app.authorization_adapter.should eq ActiveAdmin::AuthorizationAdapter namespace.authorization_adapter.should eq ActiveAdmin::AuthorizationAdapter end it "should be settable on the namespace" do namespace.authorization_adapter = auth namespace.authorization_adapter.should eq auth end it "should be settable on the application" do app.authorization_adapter = auth app.authorization_adapter.should eq auth end end end
Version data entries
5 entries across 5 versions & 1 rubygems