diff options
| author | Teddy Wing | 2015-12-08 00:28:52 -0500 | 
|---|---|---|
| committer | Teddy Wing | 2015-12-08 00:28:52 -0500 | 
| commit | 28770a5143bb5b48389d5ad4ce235625c12f1056 (patch) | |
| tree | eab152cb14f391ac991351abcfe90e3308e1779f /test/integration_test_helper.rb | |
| parent | f2950ce4afa0cf07f2f23a82805e20ab5857db63 (diff) | |
| download | Ruby-Web-Sessions-Exercise-28770a5143bb5b48389d5ad4ce235625c12f1056.tar.bz2 | |
app.rb: Remove Sinatra::Base application wrapper
Don't wrap our routes/controllers in a `Sinatra::Base` class to keep
things simple. Was doing this because I thought I needed to in order to
be able to tell Capybara where the application was but looking at the
Sinatra testing page (http://www.sinatrarb.com/testing.html), they
provide an example for Capybara that details this
`Sinatra::Application.new` call that I can make instead. This frees us
up to use the simplified application definition.
Diffstat (limited to 'test/integration_test_helper.rb')
| -rw-r--r-- | test/integration_test_helper.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
| 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 | 
