From 67d985ed3047fe9e73b2038a81d96876ab54b63a Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 7 Dec 2015 23:36:30 -0500 Subject: 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 --- app.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'app.rb') diff --git a/app.rb b/app.rb index baa9640..6f61f5b 100644 --- a/app.rb +++ b/app.rb @@ -1,6 +1,8 @@ -require 'sinatra' +require 'sinatra/base' -get '/' do - 'Hello World' +class App < Sinatra::Base + get '/' do + 'Hello World' + end end -- cgit v1.2.3