TDD Module 6 Project
Guide Tasks
- Read Tutorial
Project Requirements
- Create a fork of your Module 5 project code.
- Add an
Edit
button to theguides/show
template. - Using BDD, build specs that ensure that the
Edit
button is only shown to theuser
that create the post by utilizing the Pundit view helper method. - Using TDD, add an attribute to the
Guide
model calledstatus
that has a data type ofinteger
with a default value of0
. - Using TDD, convert the new
status
attribute to anenum
with the states ofdraft
andpublished
. - 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.