TDD Module 5 Project
Guide Tasks
- Read Tutorial
Project Requirements
- Create a new Rails application
- Install and configure the RSpec test framework with Capybara.
- Install and configure the
Deviselibrary for authentication and create aUserclass. - Add a custom attribute
roleto theUserclass. - Using TDD, create a model called
Guidethat has the string attributes oftitleandcontentand belongs to auser. - Create specs for the other side of the relationship so that a
usercan have manyguides. - Integrate the Pundit authorization library.
- Using BDD, build specs that ensure that when a
guideis created, it has a reference to the user that created it. - Using BDD, build specs that ensure that only the user that created a guide has the ability to edit it by building a Pundit policy.
- There should be at least 10 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.