0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-24 10:20:28 +01:00
discourse-custom-wizard/spec/extensions/users_controller_spec.rb
2024-10-16 13:52:03 +02:00

15 Zeilen
492 B
Ruby

# frozen_string_literal: true
describe CustomWizardUsersController, type: :request do
let(:template) { get_wizard_fixture("wizard") }
before { @controller = UsersController.new }
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