Skip to content

Commit

Permalink
APERTA-9087 Update specs to make REDIS_SENTINELS be a dependent requi…
Browse files Browse the repository at this point in the history
…red env var
  • Loading branch information
tadp committed Mar 29, 2017
1 parent 065ffb1 commit f2a1338
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/tahi_env/array_validator.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require File.dirname(__FILE__) + '/../tahi_env'
require 'yaml'

class TahiEnv
class ArrayValidator < ActiveModel::EachValidator
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/tahi_env_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
it_behaves_like 'optional env var', var: 'RACK_ENV'

# Redis Sentinel
it_behaves_like 'optional env var', var: 'REDIS_SENTINELS'
it_behaves_like 'dependent required env var', var: 'REDIS_SENTINELS', dependent_key: 'REDIS_SENTINEL_ENABLED'

# Pusher / Slanger
it_behaves_like 'required env var', var: 'PUSHER_URL'
Expand Down

0 comments on commit f2a1338

Please sign in to comment.