blob: 5e6c21840f0970d8db58bcaeed531ae92b4f3c9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
describe :env_key, shared: true do
it "needs to be reviewed for completeness"
it "returns the index associated with the passed value" do
ENV["foo"] = "bar"
ENV.send(@method, "bar").should == "foo"
ENV.delete "foo"
end
it "returns nil if the passed value is not found" do
ENV.send(@method, "should_never_be_set").should be_nil
end
end
|