Sha256: 9ead43a5522e2c55684f592fae379c13dc3c423779196c6142217ce59b466305

Contents?: true

Size: 535 Bytes

Versions: 5

Compression:

Stored size: 535 Bytes

Contents

require 'spec_helper'

describe 'User Administration', type: :feature do
  let!(:exhibit) { FactoryGirl.create(:default_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

5 entries across 5 versions & 1 rubygems

Version Path
blacklight-spotlight-0.7.2 spec/features/user_admin_spec.rb
blacklight-spotlight-0.7.1 spec/features/user_admin_spec.rb
blacklight-spotlight-0.7.0 spec/features/user_admin_spec.rb
blacklight-spotlight-0.6.0 spec/features/user_admin_spec.rb
blacklight-spotlight-0.5.0 spec/features/user_admin_spec.rb