Skip to content

Commit 3088913

Browse files
committed
Override CONNPASS_API_KEY as DUMMY in test env to avoid calling APIs by mistake
1 parent c4afd22 commit 3088913

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/rails_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# This file is copied to spec/ when you run 'rails generate rspec:install'
22
ENV['RAILS_ENV'] ||= 'test'
3+
ENV['CONNPASS_API_KEY'] = 'DUMMY_CONNPASS_API_KEY'
34
require File.expand_path('../../config/environment', __FILE__)
45
# Prevent database truncation if the environment is production
56
abort("The Rails environment is running in production mode!") if Rails.env.production?

0 commit comments

Comments
 (0)