Sha256: 046e47f4f3dc761ac554ffff83e636c46b5d15f62a065785a83a267f700b6b68
Contents?: true
Size: 606 Bytes
Versions: 10
Compression:
Stored size: 606 Bytes
Contents
require 'rails_helper' describe Devise::RegistrationsController do before do # rubocop:disable RSpec/InstanceVariable @request.env['devise.mapping'] = Devise.mappings[:user] # rubocop:enable RSpec/InstanceVariable end describe '#new' do subject { get :new } it do subject expect(response).to have_http_status(:ok) end end describe '#edit' do subject { get :edit } let(:logger_user) { create :user, :admin } before do sign_in logger_user end it do subject expect(response).to have_http_status(:ok) end end end
Version data entries
10 entries across 10 versions & 1 rubygems