Sha256: 7227ca74b79cac737a787cc47530301a0dfbdc76a65efbfb8ee5cb1e22e1d3b5
Contents?: true
Size: 682 Bytes
Versions: 21
Compression:
Stored size: 682 Bytes
Contents
# frozen_string_literal: true ::RSpec.shared_context 'when user is admin', shared_context: :metadata do let(:user) { ::FactoryBot.create(:admin_user) } before do visit '/users/sign_in' fill_in ::I18n.translate!('activerecord.attributes.eac_users_support/user.email'), with: user.email fill_in ::I18n.translate!('activerecord.attributes.eac_users_support/user.password'), with: user.password click_button ::I18n.translate!('devise.log_in') end it 'user should be logged' do expect(page).to have_content user.email end it 'should be a link to logout' do expect(page).to have_link(nil, href: '/users/sign_out') end end
Version data entries
21 entries across 21 versions & 1 rubygems