CSC/ECE 517 Spring 2022 - E2206: Testing for users controller
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':
- action_allowed?
- auto_complete_for_user_name
- destroy
- role
- paginate_list