CSC/ECE 517 Spring 2022 - E2206: Testing for users controller: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
(Created page with "== About Expertiza == [http://expertiza.ncsu.edu/ Expertiza] is the software benefits for both instructors and students by supporting various types of submissions and providi...")
(No difference)

Revision as of 05:31, 21 March 2022

About Expertiza

Expertiza is the software benefits for both instructors and students by supporting various types of submissions and providing reusable objects for peer review. It is an open-source project based on Ruby on Rails framework. It allows the instructors not only to create and customize new or existing assignments but also to create a list of topics the students can sign up for. Students can form teams to work on various projects and assignments. Expertiza also lets students peer-review other students' submissions, enabling them to work together to improve others' learning experiences.

Current Project Description

This Expertiza OSS project "E2206: Testing for users_controller" is focused on adding unit tests for users_controller.rb.

Files Involved

  • users_controller.rb
  • users_controller_spec.rb

Running Tests

  rspec ./spec/controllers/users_controller_spec.rb

Testing

users_controller had 5 methods for which unit tests were missing. To better evaluate correct functioning of the user_controller we added unit tests for these methods in the spec file 'users_controller_spec.rb':

  1. action_allowed?
  2. auto_complete_for_user_name
  3. destroy
  4. role
  5. paginate_list