Sha256: e6c0b7450ac98a12ce393f503de9c099545d1411b1d70ac00439d769ce59500d
Contents?: true
Size: 407 Bytes
Versions: 13
Compression:
Stored size: 407 Bytes
Contents
require 'spec_helper' feature 'admin dashboard' do let(:user) { FactoryGirl.create(:user) } context "when given permission" do before do allow_any_instance_of(CurationConcerns::AdminController).to receive(:authorize!).with(:read, :admin_dashboard).and_return(true) end it "loads the sidebar" do visit "/admin" expect(page).to have_link "Admin Dashboard" end end end
Version data entries
13 entries across 13 versions & 1 rubygems