CSC/ECE 517 Spring 2018/E1813 Test Menu Items Model: Difference between revisions
Line 22: | Line 22: | ||
1. Harish Pullagurla | 1. Harish Pullagurla | ||
2. Kalyan | |||
2. Kalyan Ghosh | |||
3. Sandeep Rajendran | 3. Sandeep Rajendran | ||
Revision as of 03:04, 24 March 2018
This wiki page is for the description of changes made under E1813 OSS Assignment for Spring 2018, CSC/ECE 517.
Introduction
Expertiza Background
Expertiza is a web application where students can submit and peer-review learning objects (articles, codes, websites, etc). Instructors add and edit assignments to Expertiza. Students can be assigned in teams based on their selection of the topics. The Expertiza project is supported by the National Science Foundation. The Expertiza project is software to create reusable learning objects through peer review. It also supports team projects, and the submission of almost any document type, including URLs and wiki pages.
Problem Statement
This project uses assignment.rb. This is one of the most complex files in Expertiza. It contains a lot of methods that are long and hard to understand. These methods need to be broken down into simpler and more specific methods that are easier to read/understand. Also, the few instances of code duplication that exist should also be removed.
Files Involved
These two were the files we made our changes in :
1. app/models/assignment.rb
2. spec/models/assignment_spec.rb
Team Members
Team members who collaborated to work on this problem are :
1. Harish Pullagurla
2. Kalyan Ghosh
3. Sandeep Rajendran
Plan Of Work
This is the course of solution we followed throughout our project:
Testing Details
RSpec
There were no existing test cases for the GradesController. We have added a new spec file 'grades_spec.rb' which covers testing scenario for the newly added method. The specs were run on the previous and current files and they return the same results implying that the refactored code does not break anything. As the model was not changed, no test cases were added for the model.