Sha256: 3eea9ada03370cfb4cf471550835ddc4b6c53a6585809fa4e39845127708d586
Contents?: true
Size: 740 Bytes
Versions: 40
Compression:
Stored size: 740 Bytes
Contents
require 'spec_helper' feature 'Endpoint access', js: true do before do populate_test_users end context 'as admin' do before do log_in_as('admin1') wait_for_ajax end it 'can access test_access endpoint' do press('Pricing Config.') press('Loan Programs') press('Test Access') wait_for_ajax expect(page).to have_content 'You have admin access' end end context 'as dev' do before do log_in_as('dev1') wait_for_ajax end it 'can not access test_access endpoint' do press('Pricing Config.') press('Loan Programs') press('Test Access') wait_for_ajax expect(page).to have_content 'Permission Denied' end end end
Version data entries
40 entries across 40 versions & 1 rubygems