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

Version Path
curation_concerns-1.7.8 spec/features/admin_spec.rb
curation_concerns-1.7.7 spec/features/admin_spec.rb
curation_concerns-2.0.0 spec/features/admin_spec.rb
curation_concerns-2.0.0.rc2 spec/features/admin_spec.rb
curation_concerns-1.7.6 spec/features/admin_spec.rb
curation_concerns-1.7.5 spec/features/admin_spec.rb
curation_concerns-1.7.4 spec/features/admin_spec.rb
curation_concerns-1.7.3 spec/features/admin_spec.rb
curation_concerns-1.7.2 spec/features/admin_spec.rb
curation_concerns-2.0.0.rc1 spec/features/admin_spec.rb
curation_concerns-1.7.1 spec/features/admin_spec.rb
curation_concerns-1.7.0 spec/features/admin_spec.rb
curation_concerns-1.7.0.beta1 spec/features/admin_spec.rb