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

Version Path
pg_rails-7.0.8.pre.alpha.19 pg_engine/spec/controllers/devise/registrations_controller_spec.rb
pg_rails-7.0.8.pre.alpha.18 pg_engine/spec/controllers/devise/registrations_controller_spec.rb
pg_rails-7.0.8.pre.alpha.17 pg_engine/spec/controllers/devise/registrations_controller_spec.rb
pg_rails-7.0.8.pre.alpha.16 pg_engine/spec/controllers/devise/registrations_controller_spec.rb
pg_rails-7.0.8.pre.alpha.15 pg_engine/spec/controllers/devise/registrations_controller_spec.rb
pg_rails-7.0.8.pre.alpha.14 pg_engine/spec/controllers/devise/registrations_controller_spec.rb
pg_rails-7.0.8.pre.alpha.13 pg_engine/spec/controllers/devise/registrations_controller_spec.rb
pg_rails-7.0.8.pre.alpha.12 pg_engine/spec/controllers/devise/registrations_controller_spec.rb
pg_rails-7.0.8.pre.alpha.11 pg_engine/spec/controllers/devise/registrations_controller_spec.rb
pg_rails-7.0.8.pre.alpha.10 pg_engine/spec/controllers/devise/registrations_controller_spec.rb