Navigation Menu

Skip to content

Commit

Permalink
test: group table type tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 11, 2014
1 parent 2329ab2 commit 7b18b3c
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions test/unit/catalog/test_schema.rb
Expand Up @@ -100,10 +100,18 @@ def test_name
{}).name)
end

def test_type_default
assert_equal("Hash",
create_table("table_name",
{}).type)
class TypeTest < self
def type(data)
create_table("table_name", data).type
end

def test_default
assert_equal("Hash", type({}))
end

def test_array
create_table("Array", type("Array"))
end
end

def test_type
Expand Down

0 comments on commit 7b18b3c

Please sign in to comment.