Sha256: 0f2fe6a33c7512f72edcfe52a045d394c92ab98f46029bf29641bed782170949
Contents?: true
Size: 447 Bytes
Versions: 4
Compression:
Stored size: 447 Bytes
Contents
require "spec_helper" describe Figaro::Env do before do ENV["HELLO"] = "world" end after do ENV.delete("HELLO") end it "makes ENV values accessible as methods" do subject.HELLO.should == "world" end it "makes lowercase ENV values accessible as methods" do subject.hello.should == "world" end it "raises an error if no ENV key matches" do expect{ subject.goodbye }.to raise_error(NoMethodError) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
figaro-0.5.3 | spec/figaro/env_spec.rb |
figaro-0.5.2 | spec/figaro/env_spec.rb |
figaro-0.5.1 | spec/figaro/env_spec.rb |
figaro-0.5.0 | spec/figaro/env_spec.rb |