Objective: Add feature specs for this app.
- Fork this repo, and clone it into your
devel
orwdi
folder on your local machine. - Run
bundle install
to install gems. - Run
rake db:setup
to create and migrate the database. - Run
rspec spec/features
in the Terminal. You should see firefox start up and run through the specs. (See below for chrome) - Take some time to read through the feature specs in
spec/features
. Also start the server and explore the views.
- Start by identifying what should be tested. Can you think of user stories for some of the features of this app?
- Create feature specs for the untested features of
Products
.- Delete is untested.
- Should we test the show page?
- Create specs for
Items
. Make sure you handle all of the major user-flows here too. - Add a confirmation prompt for delete.
- Figure out how to handle the prompt in your feature specs.
- Make sure your tests work in both firefox and chrome.
- Add authentication to the app, prevent new, edit, & deletion of Products and Items.
- Update your specs for this.
If you'd like to use chrome instead of firefox, read-on:
- Install chromedriver - on OSX try
brew install chromedriver
- Set the TEST_BROWSER=chrome environment variable. Example:
$ TEST_BROWSER=chrome rspec spec/features