diff --git a/rojo-test/build-test-snapshots/build_test__init_meta_class_name.snap b/rojo-test/build-test-snapshots/build_test__init_meta_class_name.snap new file mode 100644 index 00000000..8a5f8a06 --- /dev/null +++ b/rojo-test/build-test-snapshots/build_test__init_meta_class_name.snap @@ -0,0 +1,11 @@ +--- +source: rojo-test/src/build_test.rs +expression: contents +--- + + + + init_meta_class_name + + + diff --git a/rojo-test/build-test-snapshots/build_test__init_meta_properties.snap b/rojo-test/build-test-snapshots/build_test__init_meta_properties.snap new file mode 100644 index 00000000..5d24b949 --- /dev/null +++ b/rojo-test/build-test-snapshots/build_test__init_meta_properties.snap @@ -0,0 +1,12 @@ +--- +source: rojo-test/src/build_test.rs +expression: contents +--- + + + + init_meta_properties + 1 + + + diff --git a/rojo-test/build-tests/init_meta_class_name/default.project.json b/rojo-test/build-tests/init_meta_class_name/default.project.json new file mode 100644 index 00000000..0cf270c2 --- /dev/null +++ b/rojo-test/build-tests/init_meta_class_name/default.project.json @@ -0,0 +1,6 @@ +{ + "name": "init_meta_class_name", + "tree": { + "$path": "should-be-a-model" + } +} \ No newline at end of file diff --git a/rojo-test/build-tests/init_meta_class_name/should-be-a-model/init.meta.json b/rojo-test/build-tests/init_meta_class_name/should-be-a-model/init.meta.json new file mode 100644 index 00000000..5b52f5e4 --- /dev/null +++ b/rojo-test/build-tests/init_meta_class_name/should-be-a-model/init.meta.json @@ -0,0 +1,3 @@ +{ + "className": "Model" +} \ No newline at end of file diff --git a/rojo-test/build-tests/init_meta_properties/Lighting/init.meta.json b/rojo-test/build-tests/init_meta_properties/Lighting/init.meta.json new file mode 100644 index 00000000..ec43ab19 --- /dev/null +++ b/rojo-test/build-tests/init_meta_properties/Lighting/init.meta.json @@ -0,0 +1,6 @@ +{ + "className": "Lighting", + "properties": { + "Technology": "Voxel" + } +} \ No newline at end of file diff --git a/rojo-test/build-tests/init_meta_properties/default.project.json b/rojo-test/build-tests/init_meta_properties/default.project.json new file mode 100644 index 00000000..84e602f0 --- /dev/null +++ b/rojo-test/build-tests/init_meta_properties/default.project.json @@ -0,0 +1,6 @@ +{ + "name": "init_meta_properties", + "tree": { + "$path": "Lighting" + } +} \ No newline at end of file diff --git a/rojo-test/src/build_test.rs b/rojo-test/src/build_test.rs index aad1b597..fcdf9ead 100644 --- a/rojo-test/src/build_test.rs +++ b/rojo-test/src/build_test.rs @@ -28,6 +28,8 @@ gen_build_tests! { csv_in_folder, deep_nesting, gitkeep, + init_meta_class_name, + init_meta_properties, init_with_children, json_model_in_folder, json_model_legacy_name,