1
0
Fork 0
discourse-custom-wizard-unl.../spec/extensions/users_controller_spec.rb
2023-09-28 13:47:22 +01:00

18 Zeilen
527 B
Ruby

# frozen_string_literal: true
describe CustomWizardUsersController, type: :request do
let(:template) { get_wizard_fixture("wizard") }
before do
define_client_classes
@controller = UsersController.new
end
it "redirects a user to wizard after sign up if after signup is enabled" do
template['after_signup'] = true
CustomWizard::Template.save(template, skip_jobs: true)
sign_in(Fabricate(:user))
get "/u/account-created"
expect(response).to redirect_to("/w/super-mega-fun-wizard")
end
end