removed string from restriction
This commit is contained in:
@@ -18,7 +18,7 @@ TEST_CASE("Generate column definitions from object", "[column][definition][gener
|
||||
.and_then([&repo] { return repo.attach<matador::test::category>("categories"); });
|
||||
REQUIRE(result);
|
||||
|
||||
object obj("products");
|
||||
auto obj = std::make_shared<object>("products");
|
||||
auto columns = attribute_generator::generate<matador::test::product>(repo, obj);
|
||||
|
||||
const std::vector expected_columns = {
|
||||
@@ -45,7 +45,7 @@ TEST_CASE("Generate column definitions from object", "[column][definition][gener
|
||||
TEST_CASE("Generate columns from object with nullable columns", "[column generator]") {
|
||||
repository repo("main");
|
||||
|
||||
object obj("optionals");
|
||||
auto obj = std::make_shared<object>("optionals");
|
||||
auto columns = attribute_generator::generate<matador::test::optional>(repo, obj);
|
||||
|
||||
const std::vector expected_columns = {
|
||||
|
||||
Reference in New Issue
Block a user