Commit Graph

17 Commits

Author SHA1 Message Date
James Williams a354602ea8 rails 5.1: bunch of other specs
Change-Id: Ic6e4f64874021639f5e8950e2fe42f714ae31250
Reviewed-on: https://gerrit.instructure.com/120225
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2017-07-27 12:35:30 +00:00
Cody Cutrer 114a923c83 spec: mocha => rspec-stubs for views
whoa, a commit that I didn't have to manually fix anything after
running thorugh the automated fixer!

Change-Id: I6ff371a3d8fa775afdf224027dfb5162580506d5
Reviewed-on: https://gerrit.instructure.com/120565
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2017-07-26 19:26:49 +00:00
Landon Wilkins 05dec64bbd da licença part 50
add consistent license headers to all source files

Change-Id: Idbd54625443f6fed9057a21730b160765b8ba080
Reviewed-on: https://gerrit.instructure.com/110153
Tested-by: Jenkins
Reviewed-by: Jon Jensen <jon@instructure.com>
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
2017-04-28 19:01:52 +00:00
Cody Cutrer e1d85fb9b7 rails 5: stop using assigns view specs shim
just do it the right way, since the shim doesn't seem to work in rails 5

this is just a massive find/replace (repeated, due to chained assignment)

refs CNVS-34867

Change-Id: I267a16bed05a116e463cf9301645270e79a2d80e
Reviewed-on: https://gerrit.instructure.com/104193
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Jenkins
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2017-03-08 17:51:43 +00:00
Simon Williams 57497719a7 spec: rename the `course` helper to `course_factory`
closes CNVS-34046

test plan: specs should pass

Change-Id: I8684d30e5af7be04566b2d3903db2b7f4b14b24b
Reviewed-on: https://gerrit.instructure.com/98439
Tested-by: Jenkins
Reviewed-by: Landon Wilkins <lwilkins@instructure.com>
Product-Review: Landon Wilkins <lwilkins@instructure.com>
QA-Review: Landon Wilkins <lwilkins@instructure.com>
2016-12-27 20:25:29 +00:00
Simon Williams ece65b5a89 spec: rename the `user` helper to `user_factory`
closes CNVS-34042

test plan: specs should pass

Change-Id: I20709a69f0cb28fb55eba18ca81f89f4d7673b56
Reviewed-on: https://gerrit.instructure.com/98426
Tested-by: Jenkins
Reviewed-by: Landon Wilkins <lwilkins@instructure.com>
Product-Review: Landon Wilkins <lwilkins@instructure.com>
QA-Review: Landon Wilkins <lwilkins@instructure.com>
2016-12-27 20:25:25 +00:00
Cody Cutrer 60d64cfd2c rspec 3-ify spec/views
refs CNVS-16239

Change-Id: I8bacac4c1f6dcf8f033cbdc859b61ce4a33076dd
Reviewed-on: https://gerrit.instructure.com/42672
Reviewed-by: Paul Hinze <paulh@instructure.com>
Product-Review: Paul Hinze <paulh@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2014-10-14 00:44:39 +00:00
James Williams 6e80bd0188 view spec fixes for rails 3
* fix view spec rendering to include helpers
* re-implement have_tag rspec matcher
* fix problems with finding routes to
 unsaved records

Change-Id: I6ed267fcf5e8e32a62ee059be46371bc0ea35603
Reviewed-on: https://gerrit.instructure.com/30016
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2014-02-13 16:50:55 +00:00
James Williams d9ae1efd2c spec: replace it_should_behave_like with include_examples
Change-Id: I8a10679218b9a6ff8485b7822a21c704bdfaa398
Reviewed-on: https://gerrit.instructure.com/29213
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2014-01-24 16:02:26 +00:00
Jon Jensen e04b052d87 require terms by default, fixes CNVS-7330
they were required prior to our new settings refactors. this way we don't
need to go set it in prod

test plan:
1. terms should be required when registering at /register
2. terms should be required when activing an account (via course
   invitation email)
3. in the console, do Setting.set('terms_required', 'false')
4. terms should no longer be required on those pages

Change-Id: Idb13727839b847845cd4dacde4797e4e1571b42f
Reviewed-on: https://gerrit.instructure.com/22988
Reviewed-by: Mark Ericksen <marke@instructure.com>
Product-Review: Marc LeGendre <marc@instructure.com>
QA-Review: Marc LeGendre <marc@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
2013-08-12 15:57:51 +00:00
Jon Jensen bc15ef9b99 let plugins require (and customize) terms checkbox on cc confirm page
refs #CNVS-2297, #CNVS-1318, #CNVS-1301

test plan:
1. sign up via open registration (/register)
2. go to the link in your email to set a password
3. you should not have to agree to the terms again (since you did on the
   /register page)
4. refer to plugin test plan for other scenarios

Change-Id: Ie31a3424c9a8126e4c28e794b1a96da6faa7382c
Reviewed-on: https://gerrit.instructure.com/16294
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Joe Tanner <joe@instructure.com>
QA-Review: Cam Theriault <cam@instructure.com>
2012-12-21 16:48:16 -07:00
Ryan Shaw 713d0b8c91 replace all .button(s) with .btn
in order to not have to support buttons with .ui-button AND
.button AND .btn classes this simplifies and and makes our
codebase more consistent by deprecating the .button class
with .btn

Change-Id: I4802d785a47b36aa477f302e6ac8c87715db8a62
Reviewed-on: https://gerrit.instructure.com/15194
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Ryan Shaw <ryan@instructure.com>
2012-11-14 13:29:30 -07:00
Cody Cutrer b85ed5a22e make CommunicationChannelsController#confirm sharding-aware
* Add CommunicationChannel#merge_candidates and use that in
   CommunicationChannelsController#confirm, UsersController#create,
   and profile settings view
 * change a few pseudonym accesses to be based off the account, not
   the user
 * search all_pseudonyms in a few places
 * shorten @communication_channel.confirmation_code to @nonce in
   several places

test plan:
 * create a normal user in shard 1. invite the same e-mail address to
   a course in shard 2. accept the invitation as you're existing user
   (you should have to log in)
 * invite a different e-mail address to a course in shard 2. accept
   the invitation while logged in as the user from the previous step

Change-Id: I9e7a4adb0b816650f444210c7a110b08858ec037
Reviewed-on: https://gerrit.instructure.com/15121
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jacob Fugal <jacob@instructure.com>
2012-11-12 10:34:09 -07:00
Ryan Shaw 21ff2017de easier dialogs for users sharing email address
closes #7390

test plan:
* try to join a course as a parent sharing the same email as a student
* try to do the same thing from a different domain root account
* try to join a course as a parent sharing the same email as 2 or more students, make sure the radio of which account to use works.

Change-Id: I685b709050746ad9fda69f2a7c6152ec5bd32dbb
Reviewed-on: https://gerrit.instructure.com/9363
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Ryan Shaw <ryan@instructure.com>
2012-03-12 18:00:28 -06:00
Cody Cutrer 3f3bfd2a9c pre-fill the correct unique_id when confirming cc's refs #5833
this reduces confusion for multiple users trying to share e-mail addresses

also changed to passing the information as
pseudonym_session[unique_id]=<unique_id> and expected_user_id rather than
pseudonym=<pseudonym_id> to prevent a leak of information for users just
putting in arbitrary values for pseduonym_id.  Conveniently, this means
that incorrect passwords will pre-fill the form with the username you
just tried.

testplan: add an e-mail in your profile, and then log out before confirming

Change-Id: I51ae5301d509cc6cdca0fbed8118cc4b5279f928
Reviewed-on: https://gerrit.instructure.com/6805
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
2011-11-09 14:58:29 -07:00
Cody Cutrer 632c66096c give new users a chance to login with an existing account refs #5833
Change-Id: Iacd75d20f21746d7b4b6dddb7eada3b6267243c0
Reviewed-on: https://gerrit.instructure.com/6710
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Jacob Fugal <jacob@instructure.com>
2011-11-07 12:20:30 -07:00
Cody Cutrer d9b4a245ba redesign merge/registration/confirmation page closes #6149
* Don't show merge opportunities for confirmation or transfer enrollment flows
 * Combine current user and other user sections into a single section
 * Use simplified wording for single merge opportunity
 * Use "add e-mail address" for logged in, non-matching single e-mail opportunity
 * Hide the registration form behind an additional click if there are merge
   opportunities
 * When a login is required to complete the action, automatically do the action
   after login, assuming they logged in as the correct user

Change-Id: If07b38702c15509af6798fc00bc062f286789438
Reviewed-on: https://gerrit.instructure.com/6649
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Tested-by: Hudson <hudson@instructure.com>
2011-11-07 12:19:24 -07:00