Commit d1b12d6d authored by Vaz Allen's avatar Vaz Allen

Update README for this branch

parent 109a3e61
...@@ -3,8 +3,28 @@ Sinatra ...@@ -3,8 +3,28 @@ Sinatra
Brought to you by Lighthouse Labs Brought to you by Lighthouse Labs
## This branch
This branch was created for the breakout session on May 18, 2016 to
introduce basic acceptance testing and go over how this can be added
to the Sinatra skeleton, and the basic pattern of these tests.
Acceptance testing can save you filling in form fields over and over
manually to test your app's behaviour. They're much higher-level than
unit tests which are generally much more specific and focus on
code concepts (classes, objects, methods). An acceptance test with Capybara
will instead verify very high-level behaviour by interacting with an
application the way a user would and then checking how it "looks".
[Here's a gist with a lot more
detail.](https://gist.github.com/vaz/a50c26831ff9c27911c0923a906cafef)
## Getting Started ## Getting Started
1. `bundle install` 1. `bundle install`
2. `shotgun -p 3000 -o 0.0.0.0` 2. `RACK_ENV` bundle exec rake db:create
3. Visit `http://localhost:3000/` in your browser 3. `RACK_ENV` bundle exec rake db:migrate
4. `bundle exec rspec`
See `spec/spec_helper.rb` and `spec/acceptance/*` especially for
more detail.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment