Sha256: 912f247fc130a80ef24b5e181c69680c107f53415707d5289271356d6d54801b
Contents?: true
Size: 615 Bytes
Versions: 10
Compression:
Stored size: 615 Bytes
Contents
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
Version data entries
10 entries across 10 versions & 4 rubygems