Sha256: 3fcd1e88713567902b6a5178691eb9aaa9588c7a29c851cbc976138c2351f6bc
Contents?: true
Size: 445 Bytes
Versions: 52
Compression:
Stored size: 445 Bytes
Contents
require File.expand_path('../../../spec_helper', __FILE__) describe "ENV.empty?" do it "return true if the Environment is empty" do if ENV.keys.size > 0 ENV.empty?.should == false end orig = ENV.to_hash begin ENV.clear ENV.empty?.should == true ensure ENV.replace orig end end it "returns false if not empty" do if ENV.keys.size > 0 ENV.empty?.should == false end end end
Version data entries
52 entries across 52 versions & 2 rubygems