blob: 8d8311dcf2f12f08681a6b9bbf2b9ab60f135599 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
describe :env_include, shared: true do
it "returns true if ENV has the key" do
ENV["foo"] = "bar"
ENV.send(@method, "foo").should == true
ENV.delete "foo"
end
it "returns false if ENV doesn't include the key" do
ENV.send(@method, "should_never_be_set").should == false
end
end
|