Change soft-fail to use the config, rather than env
[rbx.git] / spec / frozen / 1.8 / library / cgi / queryextension / value / element_reference_spec.rb
blobfb4257765d944b1a2c7b7681ca8da02d2ad3ce2f
1 require File.dirname(__FILE__) + '/../../../../spec_helper'
2 require 'cgi'
4 describe "CGI::QueryExtension::Value#[] when passed index" do
5   before(:each) do
6     @value = "some value"
7     @value.extend(CGI::QueryExtension::Value)
8     @value.set_params(["some value", "other value", "third value"])
9   end
11   it "returns the alternative value with the passed index" do
12     @value[0].should == "some value"
13     @value[1].should == "other value"
14     @value[2].should == "third value"
15   end
16 end