diff options
| -rw-r--r-- | app.rb | 14 | ||||
| -rw-r--r-- | test/integration_test_helper.rb | 2 | 
2 files changed, 7 insertions, 9 deletions
| @@ -1,12 +1,10 @@ -require 'sinatra/base' +require 'sinatra' -class App < Sinatra::Base -  get '/' do -    erb :index -  end +get '/' do +  erb :index +end -  post '/' do -    'POST works' -  end +post '/' do +  'POST works'  end diff --git a/test/integration_test_helper.rb b/test/integration_test_helper.rb index 8431f5f..609c08b 100644 --- a/test/integration_test_helper.rb +++ b/test/integration_test_helper.rb @@ -15,4 +15,4 @@ class CapybaraTestCase < Minitest::Unit::TestCase    end  end -Capybara.app = App +Capybara.app = Sinatra::Application.new | 
