Skip to content

Latest commit

 

History

History
69 lines (37 loc) · 1.57 KB

README.md

File metadata and controls

69 lines (37 loc) · 1.57 KB

WMRUG TDD Session Example App - Chirpscore

This repository contains the starting point of an example app used for our TDD Sessions.

The original Chirpscore application was built by Nick Goodall who generously has allowed us to use the application idea as the basis for the sessions.

Installation

Simply clone the repository

git clone git@github.com:wmrug/tdd-chirpscore

Change into the directory and

bundle install --binstubs

Copy dotenv.example to .dotenv

cp .env-example .env

Change the credentials appropriately

You also should create a .test.env file which contains the DATABASE_URL for a test database

You should then be able to start the web app with foreman

bin/foreman start

This will start up thin on port 5000 http://localhost:5000

Running specs and features

You can run Cucumber with:

bin/cucumber

And RSpec with:

bin/rspec

Finally, you can run Guard with:

bin/guard

Capybara is already hooked up for both Cucumber and RSpec

User Stories

We'll be implementing the following user stories

I want to know what my Chirpscore is

I want to see a list of the top ten happiest users

I want to see a list of the top ten unhappiest users

I want more information about the mood of another user

I want to compare the Chirpscores of two users