From ba2363ba12b3684fc0fa3aade0182ee80ae69a57 Mon Sep 17 00:00:00 2001 From: Jonathan Matheus Date: Mon, 23 Apr 2012 22:48:44 -0500 Subject: [PATCH] Added test for issue with running a module function that depends on a function from another module --- specs/Modules/ModuleA.psm1 | 5 +++++ specs/Modules/ModuleB.psm1 | 4 ++++ ...e_function_that_depends_on_another_module_should_work.ps1 | 5 +++++ 3 files changed, 14 insertions(+) create mode 100644 specs/Modules/ModuleA.psm1 create mode 100644 specs/Modules/ModuleB.psm1 create mode 100644 specs/executing_module_function_that_depends_on_another_module_should_work.ps1 diff --git a/specs/Modules/ModuleA.psm1 b/specs/Modules/ModuleA.psm1 new file mode 100644 index 0000000..6e72c83 --- /dev/null +++ b/specs/Modules/ModuleA.psm1 @@ -0,0 +1,5 @@ +function Execute-ModuleAFunction { + Execute-ModuleBFunction +} + +Export-ModuleMember -Function "Execute-ModuleAFunction" \ No newline at end of file diff --git a/specs/Modules/ModuleB.psm1 b/specs/Modules/ModuleB.psm1 new file mode 100644 index 0000000..c35a372 --- /dev/null +++ b/specs/Modules/ModuleB.psm1 @@ -0,0 +1,4 @@ +function Execute-ModuleBFunction { +} + +Export-ModuleMember -Function "Execute-ModuleBFunction" \ No newline at end of file diff --git a/specs/executing_module_function_that_depends_on_another_module_should_work.ps1 b/specs/executing_module_function_that_depends_on_another_module_should_work.ps1 new file mode 100644 index 0000000..64d0b35 --- /dev/null +++ b/specs/executing_module_function_that_depends_on_another_module_should_work.ps1 @@ -0,0 +1,5 @@ +task default -depends test + +task test { + Execute-ModuleAFunction +} \ No newline at end of file