Sha256: 6eb00fd971846cb5a42dd858b5aaf4c6879bbc9d8843a4759e3e5c70259efe3e
Contents?: true
Size: 577 Bytes
Versions: 1
Compression:
Stored size: 577 Bytes
Contents
require 'rails_helper' feature 'Administrative suite is hidden behind an http basic auth wall' do [ '/admin', '/events/duplicates', '/venues/duplicates' ].each do |path| scenario "Users are not permitted in #{path}" do page.driver.basic_authorize 'nope', 'nada' visit path expect(page.status_code).to eq 401 end scenario "Authenticated users are permitted in #{path}" do page.driver.basic_authorize SECRETS.admin_username, SECRETS.admin_password visit path expect(page.status_code).to eq 200 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
calagator-0.0.1.pre1 | spec/features/admin_auth_spec.rb |