Sha256: 3f895c659618c69e1efe1552fd5ded44f0c0d346819baed78c38679a55cd03b7

Contents?: true

Size: 357 Bytes

Versions: 7

Compression:

Stored size: 357 Bytes

Contents

require 'spec_helper'

describe Heirloom do

  it "should return ENV value if passed the name" do
    set_env_var("HOME", "~")
    env = Heirloom::Env.new
    expect(env.load 'HOME').to eq '~'
  end

  it "should return nil if the ENV name does not exist" do
    env = Heirloom::Env.new
    expect(env.load 'SOME_RANDOM_MISSING_VALUE').to eq nil
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
heirloom-0.12.7 spec/env_spec.rb
heirloom-0.12.5 spec/env_spec.rb
heirloom-0.12.4 spec/env_spec.rb
heirloom-0.12.3 spec/env_spec.rb
heirloom-0.12.2 spec/env_spec.rb
heirloom-0.12.1 spec/env_spec.rb
heirloom-0.12.0 spec/env_spec.rb