Permalink
Browse files

Change the hard-coded Figaro ENV variable prefix

This will help avoid collisions with global Figaro configurations like
FIGARO_PATH, etc.
  • Loading branch information...
1 parent 7631d9c commit e16f2d47f6516e8420ce21c9de76785d9f244bae @laserlemon committed Jan 7, 2014
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/figaro/application.rb
  2. +1 −1 spec/figaro/application_spec.rb
@@ -5,7 +5,7 @@
module Figaro
class Application
- FIGARO_ENV_PREFIX = "FIGARO_"
+ FIGARO_ENV_PREFIX = "_FIGARO_"
include Enumerable
@@ -188,7 +188,7 @@ def yaml_to_path(yaml)
before do
::ENV.delete("foo")
- ::ENV.delete("FIGARO_foo")
+ ::ENV.delete("_FIGARO_foo")
application.stub(configuration: { "foo" => "bar" })
end

0 comments on commit e16f2d4

Please sign in to comment.