CSC/ECE 517 Spring 2023 - E2311. Reimplement QuizQuestion and its child classes

From Expertiza_Wiki
Revision as of 17:39, 20 March 2023 by Amjacob2 (talk | contribs)
Jump to navigation Jump to search

Background

Current State

Currently, in Expertiza there is a model class called QuizQuestion which serves as a superclass of classes MultipleChoiceCheckbox, MultipleChoiceRadio, and TrueFalse.

There are four methods in the QuizQuestion superclass which return HTML strings, depending on the question type:

  • edit -- What to display if an instructor (etc.) is creating or editing a questionnaire (questionnaires_controller.rb)
  • view_question_text -- What to display if an instructor (etc.) is viewing a questionnaire (questionnaires_controller.rb)
  • view_completed_question -- What to display if a student is viewing a filled-out questionnaire (response_controller.rb)
  • complete -- What to display if a student is filling out a questionnaire (response_controller.rb)

Additionally, the inheriting classes contain a method isvalid that is not in QuizQuestion.

Our Implementation Project

[insert details about what we've been tasked in this project]

Future Direction

[insert notes about ruby api + react, vs legacy rails]

Team

  • Aileen Jacob (amjacob2)
  • Anh Nguyen (anguyen9)
  • Joe Johnson (jdjohns4)
  • Mentor Jialin Cui (jcui9)

Detailed Description of Changes

Files Modified/Created

Executing Tests

  • To run the test suite written for our project, use the following command: bundle exec rspec spec/requests/model
  • To run individual test files (separated by model that is being tested), use the following command: bundle exec rspec spec/requests/model/test_file_name.rb

Useful Links

Our Github Forked Repo