Sha256: 4624acd278dd060f9e68e94d810738c7fbba1e976d44e70c1da4cf01f5d5b989
Contents?: true
Size: 734 Bytes
Versions: 10
Compression:
Stored size: 734 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' RSpec.feature 'Confirmation' do before do allow(Spree::UserMailer).to receive(:confirmation_instructions) .and_return(double(deliver: true)) end let!(:store) { create(:store) } background do ActionMailer::Base.default_url_options[:host] = 'http://example.com' end scenario 'create a new user', js: true, confirmable: false do visit spree.signup_path fill_in 'Email', with: 'email@person.com' fill_in 'Password', with: 'password' fill_in 'Password Confirmation', with: 'password' click_button 'Create' expect(page).to have_text 'You have signed up successfully.' expect(Spree::User.last.confirmed?).to be(false) end end
Version data entries
10 entries across 10 versions & 1 rubygems