Sha256: 06b27cd00b385bab46103601457744cd7a60c89bbeaac68a844d655891526050
Contents?: true
Size: 800 Bytes
Versions: 5
Compression:
Stored size: 800 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 expect(app.authorization_adapter).to eq ActiveAdmin::AuthorizationAdapter expect(namespace.authorization_adapter).to eq ActiveAdmin::AuthorizationAdapter end it "should be settable on the namespace" do namespace.authorization_adapter = auth expect(namespace.authorization_adapter).to eq auth end it "should be settable on the application" do app.authorization_adapter = auth expect(app.authorization_adapter).to eq auth end end end
Version data entries
5 entries across 5 versions & 2 rubygems