TDD Module 6 Project
Guide Tasks
  • Read Tutorial

Project Requirements

  • Create a fork of your Module 5 project code.
  • Add an Edit button to the guides/show template.
  • Using BDD, build specs that ensure that the Edit button is only shown to the user that create the post by utilizing the Pundit view helper method.
  • Using TDD, add an attribute to the Guide model called status that has a data type of integer with a default value of 0.
  • Using TDD, convert the new status attribute to an enum with the states of draft and published.
  • There should be at least 5 new spec 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.