TDD Module 6 Project
Guide Tasks
- Read Tutorial
Project Requirements
- Create a fork of your Module 5 project code.
- Add an
Editbutton to theguides/showtemplate. - Using BDD, build specs that ensure that the
Editbutton is only shown to theuserthat create the post by utilizing the Pundit view helper method. - Using TDD, add an attribute to the
Guidemodel calledstatusthat has a data type ofintegerwith a default value of0. - Using TDD, convert the new
statusattribute to anenumwith the states ofdraftandpublished. - 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.