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.8.1 spec/features/user_admin_spec.rb
blacklight-spotlight-0.8.0 spec/features/user_admin_spec.rb