diff options
| author | Teddy Wing | 2015-12-08 00:23:36 -0500 |
|---|---|---|
| committer | Teddy Wing | 2015-12-08 00:23:36 -0500 |
| commit | f2950ce4afa0cf07f2f23a82805e20ab5857db63 (patch) | |
| tree | ea35bb820bd2a37e941cefa1b9f00d96cdfdec8d | |
| parent | 56fe0f40d6f6399abe4106015adad472aa1cca54 (diff) | |
| download | Ruby-Web-Sessions-Exercise-f2950ce4afa0cf07f2f23a82805e20ab5857db63.tar.bz2 | |
test_helper: Set `RACK_ENV` = 'test'
Saw this on the Sinatra testing page
(http://www.sinatrarb.com/testing.html). Seems like I should put it in
to be a good Rack citizen.
| -rw-r--r-- | test/integration_test_helper.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/integration_test_helper.rb b/test/integration_test_helper.rb index 4cc35a7..8431f5f 100644 --- a/test/integration_test_helper.rb +++ b/test/integration_test_helper.rb @@ -1,3 +1,5 @@ +ENV['RACK_ENV'] = 'test' + require 'minitest/autorun' require 'capybara' |
