CSC/ECE 517 Fall 2013/oss ans

From Expertiza_Wiki
Revision as of 03:00, 30 October 2013 by Npandey (talk | contribs)
Jump to navigation Jump to search

E807 : Refactoring and testing response_controller.rb


Introduction

The response controller creates, edits, and displays responses, that is, rubrics to be filled out, or filled-out rubrics. Our project requirement entailed the following things to be done.

  • Reduce the method complexity in the response controller
  • Remove duplicated code
  • There were “custom_create” and “custom_update” methods for “custom” (multipart) rubrics. These methods were only there to handle the multi part rubrics. We already had create and update methods that were handling the normal rubrics. Our job was to use polymorphism in order to eliminate the custom methods

Future Work

Appendix