Sha256: a373dff945a11066b9f6da81603a3e4a0a3603a0aa1b678cf799c137a1a6942f
Contents?: true
Size: 306 Bytes
Versions: 52
Compression:
Stored size: 306 Bytes
Contents
require File.expand_path('../../../spec_helper', __FILE__) describe "ENV.invert" do it "returns a hash with ENV.keys as the values and vice versa" do ENV["foo"] = "bar" ENV.delete "bar" ENV.invert["bar"].should == "foo" ENV["foo"].should == "bar" ENV["bar"].should == nil end end
Version data entries
52 entries across 52 versions & 2 rubygems