Sha256: 8bac5ebdab3e7ee5c9faca8af24da804a9edf5bbf92b848a89a8c0d9fcf79d25

Contents?: true

Size: 527 Bytes

Versions: 22

Compression:

Stored size: 527 Bytes

Contents

require 'spec_helper'

describe 'User Administration', type: :feature do
  let!(:exhibit) { FactoryGirl.create(:exhibit) }
  let!(:user) { FactoryGirl.create(:exhibit_admin, exhibit: exhibit) }
  before { login_as user }
  describe 'index' do
    it 'shows the users for the exhibit' do
      visit spotlight.exhibit_roles_path(exhibit)
      exhibit.roles.each do |role|
        expect(page).to have_css('td', text: role.user.email)
        expect(page).to have_css('td', text: role.role.humanize)
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
blacklight-spotlight-0.18.0 spec/features/user_admin_spec.rb
blacklight-spotlight-0.17.1 spec/features/user_admin_spec.rb
blacklight-spotlight-0.17.0 spec/features/user_admin_spec.rb
blacklight-spotlight-0.16.0 spec/features/user_admin_spec.rb
blacklight-spotlight-0.15.0 spec/features/user_admin_spec.rb
blacklight-spotlight-0.14.2 spec/features/user_admin_spec.rb
blacklight-spotlight-0.14.1 spec/features/user_admin_spec.rb
blacklight-spotlight-0.14.0 spec/features/user_admin_spec.rb
blacklight-spotlight-0.13.0 spec/features/user_admin_spec.rb
blacklight-spotlight-0.12.1 spec/features/user_admin_spec.rb
blacklight-spotlight-0.12.0 spec/features/user_admin_spec.rb
blacklight-spotlight-0.11.0 spec/features/user_admin_spec.rb
blacklight-spotlight-0.10.3 spec/features/user_admin_spec.rb
blacklight-spotlight-0.10.2 spec/features/user_admin_spec.rb
blacklight-spotlight-0.10.1 spec/features/user_admin_spec.rb
blacklight-spotlight-0.10.0 spec/features/user_admin_spec.rb
blacklight-spotlight-0.9.2 spec/features/user_admin_spec.rb
blacklight-spotlight-0.9.1 spec/features/user_admin_spec.rb
blacklight-spotlight-0.9.0 spec/features/user_admin_spec.rb
blacklight-spotlight-0.8.2 spec/features/user_admin_spec.rb