assert_case() checks an object for what case the tables and fields are in and converts them to the target_case us required.

Requires the object to have the data_case attribute.

assert_case(x, target_case = "snake", .table_spec = data_spec(x))

Arguments

x

An object to assert case.

target_case

The case to transform it to.

.table_spec

A file specification list. Defaults to deriving from the object.