Set RACK_ENV to test in spec_helper.rb file.