canvas-lms/spec/models/users
Michael Nomitch fe1594f949 add skip_registration param to create user action
fixes CNVS-22173

test plan:
  - if local, run 'rake db:load_notifications'
  - create a new user via the API
    - with user[skip_registration] true
      & communication_channel[skip_confirmation] true
      & communication_channel info
      - masquerade as the user and go to
        /profile/settings
      - there IS NOT a message telling you that
        you must verify your email address

    - with user[skip_registration] true
      & pseudonym[send_confirmation] true
      & communication_channel info
      - the user gets an email telling them
      they have been registered
      - there IS NOT a message telling you that
        you must verify your email address

    - with user[skip_registration] false
      & communication_channel[skip_confirmation] true
      & communication_channel info
      - masquerade as the user and go to
        /profile/settings
      - there IS a message telling you that
        you must verify your email address

  - create a new user via the API, but associate
    this user with an already made pseudonym
    (use enable_sis_reactivation and sis_user_id
    to do so)
    and set pseudonym[send_confirmation] to true
    - they DO get an email saying that they have
      been registered

Change-Id: I60d0fe013cef1648abd838fd53d9992facf0e106
Reviewed-on: https://gerrit.instructure.com/59726
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Tested-by: Jenkins
QA-Review: August Thornton <august@instructure.com>
Product-Review: Jacob Fugal <jacob@instructure.com>
2015-08-24 19:09:47 +00:00
..
creation_notify_policy_spec.rb add skip_registration param to create user action 2015-08-24 19:09:47 +00:00