Skip to content
Snippets Groups Projects
Unverified Commit 79dbcb70 authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett
Browse files

Shot in the dark, I don't understand any of our rails libs yet so this could be utterly useless.

parent 00d9a0e3
No related merge requests found
require 'spec_helper'
feature 'Signup', feature: true do
include Warden::Test::Helpers
describe 'signup with no errors' do
context "when sending confirmation email" do
before { allow_any_instance_of(ApplicationSetting).to receive(:send_user_confirmation_email).and_return(true) }
before do
Warden.test_mode!
allow_any_instance_of(ApplicationSetting).to receive(:send_user_confirmation_email).and_return(true)
end
after do
Warden.test_reset!
end
it 'creates the user account and sends a confirmation email' do
user = build(:user)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment