Skip to content

Commit

Permalink
fix template test - rename interact to interactor
Browse files Browse the repository at this point in the history
  • Loading branch information
BiancaIalangi committed Nov 13, 2024
1 parent 163ad32 commit 83425ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions framework/meta/src/cmd/template/template_adjuster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const INTERACT_DIRECTORY: &str = "./interact";
const ROOT_CARGO_TOML: &str = "./Cargo.toml";
const META_CARGO_TOML: &str = "./meta/Cargo.toml";
const WASM_CARGO_TOML: &str = "./wasm/Cargo.toml";
const INTERACT_CARGO_TOML: &str = "./interact/Cargo.toml";
const INTERACT_CARGO_TOML: &str = "./interactor/Cargo.toml";
const DEFAULT_AUTHOR: &str = "you";

pub struct TemplateAdjuster {
Expand Down Expand Up @@ -44,7 +44,7 @@ impl TemplateAdjuster {
}

if self.metadata.has_interactor {
toml.add_workspace(&[".", "meta", "interact"]);
toml.add_workspace(&[".", "meta", "interactor"]);
} else {
toml.add_workspace(&[".", "meta"]);
}
Expand Down
2 changes: 1 addition & 1 deletion framework/meta/tests/template_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ fn cargo_check_interactor(sub_path: &str, new_name: &str) {
.join(TEMPLATE_TEMP_DIR_NAME)
.join(sub_path)
.join(new_name)
.join("interact");
.join("interactor");

let exit_status = Command::new("cargo")
.arg("check")
Expand Down

0 comments on commit 83425ab

Please sign in to comment.