Skip to content

Commit

Permalink
schema: Add tests for reader of ColumnIndexOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
darashi committed Feb 19, 2014
1 parent 7bd5105 commit 5cc58e1
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/unit/catalog/test_schema.rb
Expand Up @@ -151,5 +151,25 @@ def test_value_type
}).value_type)
end
end

class ColumnIndexOptionsTest < self
def create_options(data)
Droonga::Catalog::Schema::ColumnIndexOptions.new(data)
end

def test_section
assert_equal(true,
create_options({
"section" => true
}).section)
end

def test_weight
assert_equal(true,
create_options({
"weight" => true
}).weight)
end
end
end
end

0 comments on commit 5cc58e1

Please sign in to comment.