Sha256: 98931bb805cbbfa6ca8940a10974cb028250df393de9d7f568abde8244ad6296

Contents?: true

Size: 412 Bytes

Versions: 1

Compression:

Stored size: 412 Bytes

Contents

RSpec.describe Spree::Admin::UserPasswordsController, type: :controller do
  before { @request.env['devise.mapping'] = Devise.mappings[:spree_user] }

  describe '#create' do
    it 'responds with success' do
      post :create, params: { spree_user: { email: 'admin@example.com' } }

      expect(assigns[:spree_user].email).to eq('admin@example.com')
      expect(response.code).to eq('200')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_auth_devise-2.2.0 spec/controllers/spree/admin/user_passwords_controller_spec.rb