Sha256: 3321eeaefb134d93739fc59f627d3d9a5f27d883d358ba409c0011c5c93723c4
Contents?: true
Size: 543 Bytes
Versions: 4
Compression:
Stored size: 543 Bytes
Contents
RSpec.describe Spree::UserRegistrationsController, type: :controller do before { @request.env['devise.mapping'] = Devise.mappings[:spree_user] } context '#create' do before { allow(controller).to receive(:after_sign_up_path_for).and_return(spree.root_path(thing: 7)) } it 'redirects to after_sign_up_path_for' do spree_post :create, { spree_user: { email: 'foobar@example.com', password: 'foobar123', password_confirmation: 'foobar123' } } expect(response).to redirect_to spree.root_path(thing: 7) end end end
Version data entries
4 entries across 4 versions & 2 rubygems