Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 23b5f83a66
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (19 sloc) 0.615 kb
require 'spec_helper'
module Admin
class DashboardController < ActiveAdmin::Dashboards::DashboardController
end
end
class DashboardController < ActiveAdmin::Dashboards::DashboardController; end
describe ActiveAdmin::Dashboards::DashboardController do
describe "getting the namespace name" do
subject{ controller.send :namespace }
context "when admin namespace" do
let(:controller){ Admin::DashboardController.new }
it { should == :admin }
end
context "when root namespace" do
let(:controller){ DashboardController.new }
it { should == :root }
end
end
end
Jump to Line
Something went wrong with that request. Please try again.