blob: c40a56093e8a654387ef28747b9cd0411c3cbf8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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
|