object generating progress
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
|
||||
#include "matador/object/object.hpp"
|
||||
#include "matador/object/object_generator.hpp"
|
||||
#include "matador/object/repository.hpp"
|
||||
|
||||
#include "../test/models/author.hpp"
|
||||
@@ -12,7 +13,7 @@ TEST_CASE("Generate object from type", "[object][generate]") {
|
||||
auto result = repo.attach<test::author>("authors");
|
||||
REQUIRE(result);
|
||||
|
||||
const auto obj = object::object::generate<test::book>(repo, "books");
|
||||
const auto obj = object::object_generator::generate<test::book>(repo, "books");
|
||||
REQUIRE(obj->name() == "books");
|
||||
REQUIRE(obj->alias().empty());
|
||||
REQUIRE(obj->attributes().size() == 4);
|
||||
|
||||
Reference in New Issue
Block a user