Navigation Menu

Skip to content

Commit

Permalink
test: group column type tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 11, 2014
1 parent 8ee807a commit a4462a5
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions test/unit/catalog/test_schema.rb
Expand Up @@ -184,18 +184,18 @@ def test_name
{}).name)
end

def test_type
assert_equal("Scalar",
create_column("column_name",
{
"type" => "Scalar"
}).type)
end
class TypeTest < self
def type(data)
create_column("column_name", data).type
end

def test_type_default
assert_equal("Scalar",
create_column("column_name",
{}).type)
def test_scalar
assert_equal("Scalar", type("type" => "Scalar"))
end

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

def test_value_type
Expand Down

0 comments on commit a4462a5

Please sign in to comment.