require 'spec_helper' describe ActiveAdmin do describe "#default_namespace" do it "should delegate to ActiveAdmin.application" do ActiveAdmin.application.should_receive(:default_namespace) ActiveAdmin.default_namespace end it "should be deprecated" do ActiveAdmin::Deprecation.should_receive(:warn) ActiveAdmin.default_namespace end end %w(register register_page unload! load! routes).each do |method| it "delegates ##{method} to application" do ActiveAdmin.application.should_receive(method) ActiveAdmin.send(method) end end end