canvas-lms/spec/integration
Nick Cloward b995981ccc permissions are not caching correctly due to returns
fixes: CNVS-11197

Cleans and simplifies the code to remove the returns and nexts.
The block was short cuirciting the cache methods withe the returns.
Since the caching for permissions is more aggressive a few places in
specs need to clear the cache.

Test Plan:

- Clear cache
- Open a course page
- Check cache to make sure there are permission keys stored for that
  course.

Change-Id: Ib7f747242bfb4394a73876377f4b6ba632f8b728
Reviewed-on: https://gerrit.instructure.com/37100
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Nick Cloward <ncloward@instructure.com>
2014-07-02 19:34:22 +00:00
..
account_spec.rb split yaml file loading out of Setting 2014-05-21 18:27:06 +00:00
application_spec.rb rails3: stop testing for ErrorReport creation on 404s 2014-02-19 20:37:19 +00:00
asset_accesses_spec.rb arel-ify specs 2013-03-27 21:51:21 +00:00
assignments_spec.rb don't show 'everyone else' when there is only one due date 2013-02-28 10:26:31 -07:00
collaborations_spec.rb Further decoupling of google_docs from models and controllers. 2014-04-25 21:50:34 +00:00
concluded_unconcluded_spec.rb replace usages of Quiz#find_or_create_submission with SubmissionManager#find_or_create_submission 2014-04-24 19:33:08 +00:00
conferences_spec.rb integration specs are request specs in rspec2 2014-01-21 19:29:58 +00:00
content_zipper_spec.rb only queue the process_attachment job when the attachment is created 2012-01-18 09:19:34 -07:00
context_module_spec.rb rework module progressions evaluation 2014-05-01 16:42:07 +00:00
course_spec.rb make public syllabus page work without user; fixes #8499 2012-06-28 08:51:12 -06:00
course_wizard_spec.rb integration specs are request specs in rspec2 2014-01-21 19:29:58 +00:00
cross_listing_spec.rb refactor user creation/invitations closes #5833 2011-10-24 12:07:08 -06:00
discussion_topics_spec.rb display varied due dates on discussion topic show page. 2013-02-01 17:20:22 -07:00
enrollment_date_restrictions_spec.rb restrict admins from creating or deleting more powerful admins 2014-06-30 20:58:26 +00:00
external_tools_spec.rb implement lti outbound adapter 2014-03-26 16:49:22 +00:00
files_spec.rb rework module progressions evaluation 2014-05-01 16:42:07 +00:00
groups_spec.rb new dashboard design 2012-11-11 21:56:16 -07:00
hair_trigger_spec.rb assignments.needs_grading_count counter to speed things up, closes #3945 2011-03-23 10:36:15 -06:00
info_controller_spec.rb change default avatar pic from nothing to silhouette if enabled 2012-04-23 16:59:53 -06:00
locale_selection_spec.rb be explicit about enforce_available_locales 2013-12-04 23:04:15 +00:00
navigation_spec.rb Show term info when you show course name, fixes #6837 2012-05-01 13:04:49 -06:00
oauth_token_spec.rb move twitter to gem 2014-05-05 20:08:27 +00:00
otp_spec.rb multi-factor authentication closes #9532 2012-08-16 13:09:07 -06:00
page_view_spec.rb fix page view controller and action logging in rails 3 2014-06-26 16:47:42 +00:00
profile_spec.rb 1.9 - make sure the mock session pseudonym will respond to #id 2012-08-03 09:44:00 -06:00
pseudonym_sessions_controller_spec.rb restrict admins from creating or deleting more powerful admins 2014-06-30 20:58:26 +00:00
quiz_regrading_spec.rb remove #grade_submission from QuizSubmission 2014-04-23 19:28:03 +00:00
quiz_submissions_spec.rb namespace all of quiz into quizzes module 2014-02-18 22:17:13 +00:00
quizzes_spec.rb apply dual timezone filters 2014-05-23 19:01:34 +00:00
security_spec.rb permissions are not caching correctly due to returns 2014-07-02 19:34:22 +00:00
sessions_timeout_spec.rb Allow accounts to specify session timeout time 2012-11-16 09:35:48 -07:00
student_interactions_spec.rb restrict admins from creating or deleting more powerful admins 2014-06-30 20:58:26 +00:00
syllabus_spec.rb set syllabus body for syllabus course home page 2013-04-21 22:46:49 +00:00
track_memory_and_cpu_spec.rb extract canvas statsd gem 2014-03-14 15:03:23 +00:00
user_content_spec.rb use assert_status instead of checking response.status directly 2014-02-08 14:06:53 +00:00
users_controller_spec.rb restrict admins from creating or deleting more powerful admins 2014-06-30 20:58:26 +00:00
varied_due_dates_spec.rb apply dual timezone filters 2014-05-23 19:01:34 +00:00
wiki_page_spec.rb include module_item_id parameter in draft state page redirect 2014-05-06 23:45:24 +00:00