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 Devise library for authentication and create a User class.
  • Add a custom attribute role to the User class.
  • Using TDD, create a model called Guide that has the string attributes of title and content and belongs to a user.
  • Create specs for the other side of the relationship so that a user can have many guides.
  • Integrate the Pundit authorization library.
  • Using BDD, build specs that ensure that when a guide is 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.