CSC/ECE 517 Fall 2018/E1853 Write unit tests for menu.rb: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
For reviewers:
This project wrote unit tests for the Menu.rb model in Expertiza.
To run all tests call "rspec -fd ./spec/models/menu.rb"
 
==Project Introduction==
The menu model is used to create the top bar menu in expertiza. It does this by obtaining and organizing Menu_Items based on the current users Role. Before this project there were no unit tests for menu.rb. This project seeked to bring the unit test coverage above %90.
 
 
===Team===
Barrett Bryson (bbryson)
Komal Kangutkar (kmkangut)
 
===RSpec File===
The final result can be found at expertiza/spec/models/menu_spec.rb. This specific test can be run by calling in the expertiza directory:
<pre>
  rspec -fd ./spec/models/menu_spec.rb
</pre>

Revision as of 20:31, 2 November 2018

This project wrote unit tests for the Menu.rb model in Expertiza.

Project Introduction

The menu model is used to create the top bar menu in expertiza. It does this by obtaining and organizing Menu_Items based on the current users Role. Before this project there were no unit tests for menu.rb. This project seeked to bring the unit test coverage above %90.


Team

Barrett Bryson (bbryson) Komal Kangutkar (kmkangut)

RSpec File

The final result can be found at expertiza/spec/models/menu_spec.rb. This specific test can be run by calling in the expertiza directory:

  rspec -fd ./spec/models/menu_spec.rb