diff options
| author | Teddy Wing | 2015-12-07 23:36:30 -0500 |
|---|---|---|
| committer | Teddy Wing | 2015-12-07 23:36:30 -0500 |
| commit | 67d985ed3047fe9e73b2038a81d96876ab54b63a (patch) | |
| tree | 752b4773bc542c28abdae9c5930b4577db4b7c5b /app.rb | |
| parent | 4e5534b3e29dad49632ae8d2c4f661057fddbe55 (diff) | |
| download | Ruby-Web-Sessions-Exercise-67d985ed3047fe9e73b2038a81d96876ab54b63a.tar.bz2 | |
Add a simple Capybara test
* Add Rakefile to run tests with `rake`
* Add a `test_helper` to take care of the setup that Capybara requires
in order to run
* Add a super basic test to see if Capybara works
* Put app in a `Sinatra::Base` subclass so that we can tell Capybara
where to find it
Diffstat (limited to 'app.rb')
| -rw-r--r-- | app.rb | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,6 +1,8 @@ -require 'sinatra' +require 'sinatra/base' -get '/' do - 'Hello World' +class App < Sinatra::Base + get '/' do + 'Hello World' + end end |
