1
require File.dirname(__FILE__) + "/../test_helper"
3
class FieldSymbolTest < Test::Unit::TestCase
5
Ferret::FIELD_TYPES.each do |field_type|
6
assert(:sym.respond_to?(field_type),
7
"Symbol doesn't respond to #{field_type}")
10
%w(desc desc? type).each do |method|
11
assert(:sym.respond_to?(method),
12
"Symbol doesn't respond to #{method}")
17
assert(:sym.desc.desc?)
18
assert(!:sym.desc.desc.desc?)
20
Ferret::FIELD_TYPES.each do |field_type|
21
assert_equal(field_type, :sym.__send__(field_type).type)
24
assert(:string, :sym.integer.byte.float.string.type)