Skip to content

Commit

Permalink
default instructor to incomplete_signup (#1242)
Browse files Browse the repository at this point in the history
* default instructor to incomplete_signup

* update spec
  • Loading branch information
mwvolo authored Mar 13, 2024
1 parent bfd4c5c commit 2c2586d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/handlers/newflow/educator_signup/signup_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module EducatorSignup
class SignupForm

USER_DEFAULT_STATE = :unverified
USER_FACULTY_STATUS = User::PENDING_FACULTY
USER_FACULTY_STATUS = User::INCOMPLETE_SIGNUP
USER_ROLE = :instructor
USER_IS_NEWFLOW = true
private_constant(:USER_DEFAULT_STATE, :USER_FACULTY_STATUS, :USER_ROLE, :USER_IS_NEWFLOW)
Expand Down
4 changes: 2 additions & 2 deletions spec/handlers/newflow/educator_signup/signup_form_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ module EducatorSignup
expect { handler_call }.to change { User.where(state: 'unverified', role: :instructor).count }
end

it 'sets the new user\'s faculty status to pending_faculty' do
expect { handler_call }.to change { User.where(faculty_status: :pending_faculty).count }
it 'sets the new user\'s faculty status to incomplete_signup' do
expect { handler_call }.to change { User.where(faculty_status: :incomplete_signup).count }
end

it 'creates an authentication with provider = identity' do
Expand Down

0 comments on commit 2c2586d

Please sign in to comment.