Sha256: 80ece79a88993046a7a6bda4bb05790726b739fd6dc65c8f3868adb8a23c3cbf
Contents?: true
Size: 669 Bytes
Versions: 22
Compression:
Stored size: 669 Bytes
Contents
require "spec_helper" require "foreman" describe Foreman do describe "VERSION" do subject { Foreman::VERSION } it { should be_a String } end describe "::load_env!(env_file)" do before do FakeFS.activate! end after do FakeFS.deactivate! ENV['FOO'] = nil end it "should load env_file into ENV" do File.open("/tmp/env1", "w") { |f| f.puts("FOO=bar") } Foreman.load_env!("/tmp/env1") ENV['FOO'].should == 'bar' end it "should assume env_file in ./.env" do File.open("./.env", "w") { |f| f.puts("FOO=bar") } Foreman.load_env! ENV['FOO'].should == 'bar' end end end
Version data entries
22 entries across 22 versions & 1 rubygems