Sha256: 1c1f01b066303399af0e8f6a1195246b16754c30fc5dc39bb28c2ca558492314
Contents?: true
Size: 801 Bytes
Versions: 25
Compression:
Stored size: 801 Bytes
Contents
require 'rails_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
25 entries across 25 versions & 4 rubygems