blob: 43299beadbfd99c63e8e66deae3a5171efee840e (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
describe :env_key, shared: true do
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
|