Sha256: 822d2a127c983820f9d530ff4d0541c6d2560da03e90d30b3c7c61f12bf814a3
Contents?: true
Size: 619 Bytes
Versions: 5
Compression:
Stored size: 619 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Osso::Admin do describe 'get /admin' do it 'redirects to /login without a session' do get('/admin') expect(last_response).to be_redirect follow_redirect! expect(last_request.url).to match('/login') end xit 'renders the admin page for a valid session token' do password = SecureRandom.urlsafe_base64(16) account = create(:verified_account, password: password) post('/login', { email: account.email, password: password }) get('/admin') expect(last_response).to be_ok end end end
Version data entries
5 entries across 5 versions & 1 rubygems