TDD Module 4 Project
Guide Tasks
- Read Tutorial
- Complete the Exercise
Project Requirements
- Create a new Rails application
- Install and configure the RSpec test framework with Capybara.
- Install and configure the
Devise
library for authentication and create aUser
class. - Add a custom attribute
role
to theUser
class. - Create a controller called
AdminDashboard
with an action and view calleddashboard
. - Using BDD, ensure that only users with the
role
ofadmin
can view theAdminDashboard#dashboard
view. - There should be at least 2 specs written for this project, including both model and feature specs. All specs need to be passing in order for project to be approved.
- Submit the final version of the code on this guide page. The submission should be a link to a public Github repo page.