vendor/plugins/form_test_helper/lib/form_test_helper.rb
# If +value+ is a label, return the real value.  If not an option, raise error.
If +value+ is a label, return the real value.  If not an option, raise error.
If + value + is a label return the real value . If not an option raise error .
def lookup_in_options(value)
      if options.include?(value)
        return value
      elsif options_are_labeled? && pair = options.detect {|option| option.include?(value.to_s) }
        return pair.last
      else
        raise "Value '#{value}' isn't one of the options for #{self.name}."
      end
    end
def lookup_in_options ( value ) if options . include? ( value ) return value elsif options_are_labeled? && pair = options . detect { | option | option . include? ( value . to_s ) } return pair . last else raise "Value '#{value}' isn't one of the options for #{self.name}." end end
If +value+ is a label, return the real value.
If + value + is a label return the real value .
value
<not_specific>