canvas-lms/spec/models
James Butters 5eb2ffc0c3 spec: expect user to be included
expecting user to be the first in enrollments leads
to flakey results. Instead check for the user to be
included in the enrollments, no requirement for this
user to be the first.

flag = none
Test Plan:
passes jenkins specifically FSC build

Change-Id: Ia067daf8bb8d8ad2dec751743b1e87505887ef6e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/230918
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Robin Kuss <rkuss@instructure.com>
QA-Review: James Butters <jbutters@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
2020-03-21 22:20:33 +00:00
..
account update HelpLinks to run in the context of an account 2019-05-09 16:08:36 +00:00
alerts spec: mocha => rspec-mocks for models 2017-07-27 16:38:19 +00:00
assignment Invert Assignment::SpeedGrader namespaces 2018-09-21 23:08:11 +00:00
assignments Add provisional grade audit events 2018-09-13 14:21:30 +00:00
attachments Add create content share API 2019-08-22 19:10:27 +00:00
auditors fix duplicate grade history entries when unmuting 2019-08-29 20:30:31 +00:00
authentication_provider allow multiple domains on a google auth provider 2019-11-18 20:44:00 +00:00
broadcast_policies spec: remove post policy enable_feature! calls 2020-03-12 16:37:48 +00:00
conditional_release spec: remove post policy enable_feature! calls 2020-03-12 16:37:48 +00:00
content_migration spec: remove post policy enable_feature! calls 2020-03-12 16:37:48 +00:00
courses Add copyright message to remaining .rb files 2018-03-19 13:38:50 +00:00
discussion_topic Relativize ids in discussion topic materialized view 2018-10-22 20:32:14 +00:00
enrollment calculate enrollment states after transaction 2019-04-04 16:19:17 +00:00
epub_exports spec: mocha => rspec-mocks for models 2017-07-27 16:38:19 +00:00
exporters align quiz migration behaviors with quiz duplication 2019-10-22 22:18:35 +00:00
group_categories spec: mocha => rspec-mocks for models 2017-07-27 16:38:19 +00:00
importers de-dup tools based on name as well on import 2020-03-10 16:23:19 +00:00
incoming_mail spec: validate that secure id can be processed 2019-12-06 20:40:53 +00:00
live_assessments spec: mocha => rspec-mocks for models 2017-07-27 16:38:19 +00:00
lti Fix scopes on creation of lti key 2020-01-10 21:59:45 +00:00
master_courses allow auto publishing after initial blueprint association sync 2020-03-19 18:56:25 +00:00
messages spec: remove post policy enable_feature! calls 2020-03-12 16:37:48 +00:00
moderated_grading fix deleting rubrics from moderated assignments 2020-02-05 23:25:45 +00:00
page_view spec: mocha => rspec-mocks for models 2017-07-27 16:38:19 +00:00
polling da licença part 48 2017-04-28 18:59:33 +00:00
quizzes spec: remove post policy enable_feature! calls 2020-03-12 16:37:48 +00:00
quizzes_next load assignment overrides for new quizzes on quiz page 2020-02-26 03:41:54 +00:00
speed_grader spec: expect user to be included 2020-03-21 22:20:33 +00:00
users redirect back to original file url on expired file token 2019-08-01 12:29:51 +00:00
wiki_pages bypass the wiki model as much as possible for wiki_pages 2017-08-09 16:09:06 +00:00
access_token_spec.rb Send emails when manually generated key is created 2020-01-06 21:08:45 +00:00
account_notification_spec.rb move unbounded user preference data to separate table 2020-03-02 20:10:32 +00:00
account_spec.rb Clean up account users when account is destroyed 2020-01-13 19:02:25 +00:00
account_user_spec.rb add caching around permission/role_override calculations 2019-05-29 15:52:47 +00:00
active_record_base_spec.rb fix bulk insert array casting with special strings 2019-04-17 15:15:37 +00:00
alert_spec.rb spec: mocha => rspec-mocks for models 2017-07-27 16:38:19 +00:00
announcement_spec.rb rails 6: s/update_attributes/update/g 2020-01-09 20:56:35 +00:00
anonymous_or_moderation_event_spec.rb allow for tool or quiz id in audit events 2019-02-06 16:36:10 +00:00
appointment_group_spec.rb only count future time slots for Scheduler notifications 2020-02-13 22:18:54 +00:00
assessment_question_bank_spec.rb spec: mocha => rspec-mocks for models 2017-07-27 16:38:19 +00:00
assessment_question_spec.rb da licença part 48 2017-04-28 18:59:33 +00:00
assessment_request_spec.rb use anonymous submission url in rubric reminder notifications 2020-03-05 13:20:10 +00:00
asset_user_access_spec.rb Prevent file downloads from hiding usage 2018-11-02 16:34:45 +00:00
assignment_configuration_tool_lookup_spec.rb rails 6: s/update_attributes/update/g 2020-01-09 20:56:35 +00:00
assignment_group_spec.rb rails 6: s/update_attributes/update/g 2020-01-09 20:56:35 +00:00
assignment_override_spec.rb datafix: clean up invalid assignment overrides 2018-06-15 19:28:30 +00:00
assignment_override_student_spec.rb queue DueDateCacher for one student in AssignmentOverrideStudent 2018-08-21 13:45:10 +00:00
assignment_spec.rb spec: remove post policy enable_feature! calls 2020-03-12 16:37:48 +00:00
assignment_student_visibility_spec.rb calculate scores when re-enrolling into course 2019-07-24 20:41:12 +00:00
attachment_spec.rb deal with extensions starting with digits when making unique file names 2019-11-20 16:23:45 +00:00
attachment_upload_status_spec.rb bump shoulda-matchers to 4.1.0 2019-07-17 19:26:25 +00:00
authentication_provider_spec.rb don't choke when IdPs send nil attribute values 2018-06-25 15:41:29 +00:00
big_blue_button_conference_spec.rb preload big blue button conference recording data 2020-03-10 20:54:10 +00:00
bookmark_service_spec.rb spec: mocha => rspec-mocks for models 2017-07-27 16:38:19 +00:00
bounce_notification_processor_spec.rb use inst_statsd 2019-03-25 17:00:49 +00:00
brand_config_spec.rb add mobile-global-nav logo brand variable 2019-07-17 19:06:06 +00:00
calendar_event_spec.rb rails 6: s/update_attributes/update/g 2020-01-09 20:56:35 +00:00
canvadoc_spec.rb add new endpoint for docviewer audit events 2018-08-30 20:07:53 +00:00
collaboration_spec.rb da licença part 48 2017-04-28 18:59:33 +00:00
collaborator_spec.rb fix peer review notification bug 2020-01-20 17:23:20 +00:00
communication_channel_spec.rb remove unused scopes and method 2020-01-21 06:04:29 +00:00
content_export_spec.rb align quiz migration behaviors with quiz duplication 2019-10-22 22:18:35 +00:00
content_migration_spec.rb Fix zip expand progress bar 2019-10-28 15:52:02 +00:00
content_participation_count_spec.rb spec: remove post policy enable_feature! calls 2020-03-12 16:37:48 +00:00
content_participation_spec.rb da licença part 48 2017-04-28 18:59:33 +00:00
content_tag_spec.rb guard against running the DueDateCacher for a non-assignment quiz 2019-07-30 23:01:05 +00:00
context_external_tool_spec.rb Expand permission check for global navigation tools 2020-03-05 18:39:15 +00:00
context_module_progression_spec.rb spec: remove post policy enable_feature! calls 2020-03-12 16:37:48 +00:00
context_module_spec.rb spec: remove post policy enable_feature! calls 2020-03-12 16:37:48 +00:00
context_spec.rb rails 6: s/update_attributes/update/g 2020-01-09 20:56:35 +00:00
conversation_batch_spec.rb da licença part 48 2017-04-28 18:59:33 +00:00
conversation_message_participant_spec.rb da licença part 48 2017-04-28 18:59:33 +00:00
conversation_message_spec.rb da licença part 48 2017-04-28 18:59:33 +00:00
conversation_participant_spec.rb rails 6: s/update_attributes/update/g 2020-01-09 20:56:35 +00:00
conversation_spec.rb rails 6: s/update_attributes/update/g 2020-01-09 20:56:35 +00:00
course_date_range_spec.rb rails 6: s/update_attributes/update/g 2020-01-09 20:56:35 +00:00
course_progress_spec.rb cache progression and item visibility data on courses 2017-08-24 16:46:26 +00:00
course_section_spec.rb rails 6: s/update_attributes/update/g 2020-01-09 20:56:35 +00:00
course_spec.rb spec: remove post policy enable_feature! calls 2020-03-12 16:37:48 +00:00
crocodoc_document_spec.rb spec: remove post policy enable_feature! calls 2020-03-12 16:37:48 +00:00
csp_spec.rb fix CSP enforcement, and show alerts for top level violations 2019-03-20 19:02:49 +00:00
custom_data_spec.rb da licença part 48 2017-04-28 18:59:33 +00:00
custom_gradebook_column_datum_spec.rb spec: fix NameError Api::V1::CustomGradebookColumnDatum 2018-08-13 16:59:00 +00:00
delayed_message_spec.rb rails 5.1: all the rest of the specs 2017-07-31 19:48:51 +00:00
delayed_notification_spec.rb drop Message#asset_context and DelayedNotification#asset_context 2017-08-22 17:47:51 +00:00
developer_key_account_binding_spec.rb Restore tool states when SA key is set to 'allow' 2019-05-22 16:18:32 +00:00
developer_key_spec.rb Add manual edit for public jwk url 2019-06-25 18:29:59 +00:00
discussion_entry_spec.rb don't increment root discussion participants for group users 2019-09-23 16:12:00 +00:00
discussion_topic_participant_spec.rb da licença part 48 2017-04-28 18:59:33 +00:00
discussion_topic_section_visibility_spec.rb remove section specific announcements feature flag 2018-03-28 19:56:20 +00:00
discussion_topic_spec.rb fix unread badge bug for delayed posts 2020-03-04 15:35:37 +00:00
enrollment_spec.rb Filter todos by permission and conclusion status 2019-11-05 21:21:42 +00:00
enrollment_state_spec.rb don't cache incorrect enrollment state in callbacks 2018-01-05 21:15:29 +00:00
enrollment_term_spec.rb prevent default term names from being changed 2018-08-06 12:58:19 +00:00
eportfolio_category_spec.rb Check ePortfolios for spam on saving 2019-12-12 23:29:52 +00:00
eportfolio_entry_spec.rb Check ePortfolios for spam on saving 2019-12-12 23:29:52 +00:00
eportfolio_spec.rb limit eportfolio creation 2019-12-20 16:54:48 +00:00
epub_export_spec.rb escape epub export item titles 2019-05-15 12:22:08 +00:00
error_report_spec.rb stop logging 404 error reports 2019-01-18 20:26:50 +00:00
external_feed_spec.rb rails 5.2 2018-04-25 19:15:20 +00:00
external_integration_key_spec.rb da licença part 48 2017-04-28 18:59:33 +00:00
external_tool_collaboration_spec.rb da licença part 48 2017-04-28 18:59:33 +00:00
feature_flag_spec.rb spec: mocha => rspec-mocks for models 2017-07-27 16:38:19 +00:00
folder_spec.rb rails 6: s/update_attributes/update/g 2020-01-09 20:56:35 +00:00
google_docs_collaboration_spec.rb multicache Setting too 2018-08-28 19:37:28 +00:00
gradebook_csv_spec.rb da licença part 48 2017-04-28 18:59:33 +00:00
gradebook_upload_spec.rb spec: mocha => rspec-mocks for models 2017-07-27 16:38:19 +00:00
grading_period_group_spec.rb change delayed job behavior when grading period is updated 2018-02-12 23:25:59 +00:00
grading_period_permissions_spec.rb da licença part 48 2017-04-28 18:59:33 +00:00
grading_period_spec.rb change delayed job behavior when grading period is updated 2018-02-12 23:25:59 +00:00
grading_standard_spec.rb rails 6: s/update_attributes/update/g 2020-01-09 20:56:35 +00:00
group_category_spec.rb change delayed job behavior when grading period is updated 2018-02-12 23:25:59 +00:00
group_leadership_spec.rb da licença part 48 2017-04-28 18:59:33 +00:00
group_membership_spec.rb run due date cacher for discussion assignments after group change 2018-08-08 20:09:08 +00:00
group_spec.rb fix default grading scheme for letter grade assignment 2018-03-05 21:05:32 +00:00
ignore_spec.rb rails 6: s/update_attributes/update/g 2020-01-09 20:56:35 +00:00
importers_spec.rb Postpone live events during content migrations 2019-01-25 20:35:07 +00:00
kaltura_media_file_handler_spec.rb spec: mocha => rspec-mocks for models 2017-07-27 16:38:19 +00:00
late_policy_spec.rb use bigdecimal() instead of bigdecimal.new 2018-12-07 20:07:51 +00:00
learning_outcome_group_spec.rb collapse AcademicBenchmark columns 2020-01-16 19:54:58 +00:00
learning_outcome_result_spec.rb Add user_uuid to LearningOutcomeResult 2020-03-02 18:02:09 +00:00
learning_outcome_spec.rb collapse AcademicBenchmark columns 2020-01-16 19:54:58 +00:00
mailer_spec.rb use notification_service in cases that bypass the Message model 2017-07-31 21:49:05 +00:00
media_object_spec.rb Revert LA-408 2020-01-23 18:36:27 +00:00
media_source_fetcher_spec.rb spec: mocha => rspec-mocks for models 2017-07-27 16:38:19 +00:00
message_spec.rb Restrict SMS notification types 2020-03-12 16:25:31 +00:00
moderation_grader_spec.rb add slot_taken to moderation_graders 2018-08-15 20:01:19 +00:00
notification_endpoint_spec.rb remove `save_without_callbacks` 2018-04-10 19:14:44 +00:00
notification_failure_processor_spec.rb partition messages 2018-12-10 13:42:35 +00:00
notification_finder_spec.rb spec: mocha => rspec-mocks for models 2017-07-27 16:38:19 +00:00
notification_policy_spec.rb rename scope 2020-03-11 22:17:23 +00:00
notification_spec.rb da licença part 48 2017-04-28 18:59:33 +00:00
notifier_spec.rb drop Message#asset_context and DelayedNotification#asset_context 2017-08-22 17:47:51 +00:00
observer_alert_spec.rb course_grade_change live event 2019-12-18 23:06:59 +00:00
observer_alert_threshold_spec.rb look for existing trust enrollments when adding an observer link 2019-03-04 13:19:24 +00:00
observer_enrollment_spec.rb da licença part 48 2017-04-28 18:59:33 +00:00
observer_pairing_code_spec.rb add ObserverPairingCode model 2018-05-31 22:19:37 +00:00
one_time_password_spec.rb MFA backup code support 2017-05-02 16:08:53 +00:00
originality_report_spec.rb rails 6: s/update_attributes/update/g 2020-01-09 20:56:35 +00:00
outcome_import_error_spec.rb Truncate long error messages. 2018-11-27 15:29:54 +00:00
outcome_import_spec.rb bump shoulda-matchers to 4.1.0 2019-07-17 19:26:25 +00:00
outcome_proficiency_rating_spec.rb Only allow non-negative points 2018-06-11 19:21:52 +00:00
outcome_proficiency_spec.rb bump shoulda-matchers to 4.1.0 2019-07-17 19:26:25 +00:00
page_view_spec.rb filter page views by accessible accounts 2017-11-08 18:22:38 +00:00
planner_note_spec.rb Refactor planner items endpoint to prepare for calendar 2018-05-24 17:33:46 +00:00
planner_override_spec.rb Standardize where planner overrides live 2018-08-15 19:06:34 +00:00
plugin_setting_spec.rb remove `save_without_callbacks` 2018-04-10 19:14:44 +00:00
post_policy_spec.rb spec: remove post policy enable_feature! calls 2020-03-12 16:37:48 +00:00
profile_spec.rb da licença part 48 2017-04-28 18:59:33 +00:00
progress_spec.rb Increase the job priority for url uploads. 2018-06-28 19:19:31 +00:00
pseudonym_spec.rb invert reliability of CAS SLO 2018-06-08 20:27:45 +00:00
quiz_student_visibility_spec.rb Store dropped submissions from a calculation 2017-10-30 22:57:49 +00:00
role_override_spec.rb use rails built-in RedisCacheStore 2019-08-09 20:22:56 +00:00
role_spec.rb rails 5.1: lib specs 2017-07-20 17:26:51 +00:00
rubric_assessment_spec.rb spec: remove post policy enable_feature! calls 2020-03-12 16:37:48 +00:00
rubric_association_spec.rb fix ratings of the same point value both being selected 2018-11-30 20:57:05 +00:00
rubric_spec.rb Fix XSS vulnerability in rubric descriptions. 2019-05-08 17:41:46 +00:00
score_metadata_spec.rb bump shoulda-matchers to 4.1.0 2019-07-17 19:26:25 +00:00
score_spec.rb bump shoulda-matchers to 4.1.0 2019-07-17 19:26:25 +00:00
score_statistic_spec.rb bump shoulda-matchers to 4.1.0 2019-07-17 19:26:25 +00:00
settings_spec.rb back Setting cache with an ActiveSupport::Cache::MemoryStore 2018-06-20 19:38:15 +00:00
sharded_bookmarked_collection_spec.rb fix cross-database calendar queries 2017-11-28 20:31:54 +00:00
shared_brand_config_spec.rb da licença part 48 2017-04-28 18:59:33 +00:00
sis_batch_roll_back_data_spec.rb also update updated_at on restore states 2018-08-30 16:32:35 +00:00
sis_batch_spec.rb rails 6: s/update_attributes/update/g 2020-01-09 20:56:35 +00:00
sis_pseudonym_spec.rb add sis_pseudonym_id to enrollment object 2018-01-04 00:58:37 +00:00
split_users_spec.rb create notification policies for the correct shard 2019-05-14 19:58:12 +00:00
stream_item_instance_spec.rb spec: mocha => rspec-mocks for models 2017-07-27 16:38:19 +00:00
stream_item_spec.rb don't regenerate stream item instances after message deletion 2018-12-20 05:52:35 +00:00
student_enrollment_spec.rb da licença part 48 2017-04-28 18:59:33 +00:00
student_view_enrollment_spec.rb da licença part 48 2017-04-28 18:59:33 +00:00
submission_comment_interaction_spec.rb da licença part 48 2017-04-28 18:59:33 +00:00
submission_comment_spec.rb spec: remove post policy enable_feature! calls 2020-03-12 16:37:48 +00:00
submission_draft_attachment_spec.rb SubmissionDraft model initial commit 2019-05-17 14:42:08 +00:00
submission_draft_spec.rb fix issue caused by malformed urls 2019-11-05 00:07:49 +00:00
submission_spec.rb spec: remove post policy enable_feature! calls 2020-03-12 16:37:48 +00:00
submission_version_spec.rb spec: mocha => rspec-mocks for models 2017-07-27 16:38:19 +00:00
ta_enrollment_spec.rb da licença part 48 2017-04-28 18:59:33 +00:00
teacher_enrollment_spec.rb da licença part 48 2017-04-28 18:59:33 +00:00
terms_of_service_spec.rb Add a UI for selecting the new policy 2018-03-02 00:58:49 +00:00
usage_rights_spec.rb da licença part 48 2017-04-28 18:59:33 +00:00
user_learning_object_scopes_spec.rb rails 6: s/update_attributes/update/g 2020-01-09 20:56:35 +00:00
user_observer_spec.rb look for existing trust enrollments when adding an observer link 2019-03-04 13:19:24 +00:00
user_preference_value_spec.rb move unbounded user preference data to separate table 2020-03-02 20:10:32 +00:00
user_profile_spec.rb show content shares tab to admins w/o enrollments 2019-11-19 20:09:19 +00:00
user_service_spec.rb da licença part 48 2017-04-28 18:59:33 +00:00
user_spec.rb spec: remove post policy enable_feature! calls 2020-03-12 16:37:48 +00:00
web_conference_spec.rb spec: mocha => rspec-mocks for models 2017-07-27 16:38:19 +00:00
web_conference_spec_helper.rb da licença part 48 2017-04-28 18:59:33 +00:00
web_zip_export_spec.rb da licença part 48 2017-04-28 18:59:33 +00:00
wiki_page_spec.rb rails 6: s/update_attributes/update/g 2020-01-09 20:56:35 +00:00
wiki_spec.rb Add granular permissions for wiki pages 2020-01-30 13:33:51 +00:00
wimba_conference_spec.rb spec: mocha => rspec-mocks for models 2017-07-27 16:38:19 +00:00