From f2950ce4afa0cf07f2f23a82805e20ab5857db63 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 8 Dec 2015 00:23:36 -0500 Subject: 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. --- test/integration_test_helper.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') 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' -- cgit v1.2.3