From 07eaa4648b6b91804bf646cf0cfe3b71d521ba52 Mon Sep 17 00:00:00 2001 From: Peter Honeder Date: Fri, 10 Jul 2015 13:50:30 -0700 Subject: [PATCH] re-pin to pester fixes, added pester hello world test --- ext-src/pester | 2 +- scripts/pester/Get-HelloWorld.Tests.ps1 | 13 +++++++++++++ scripts/pester/Get-HelloWorld.ps1 | 3 +++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 scripts/pester/Get-HelloWorld.Tests.ps1 create mode 100644 scripts/pester/Get-HelloWorld.ps1 diff --git a/ext-src/pester b/ext-src/pester index b26b3cc936..941efb9fbf 160000 --- a/ext-src/pester +++ b/ext-src/pester @@ -1 +1 @@ -Subproject commit b26b3cc93644640331cf33b4ca9b7f2012e5adca +Subproject commit 941efb9fbfb56c0ffa5470b150dc7ca9c2ab350b diff --git a/scripts/pester/Get-HelloWorld.Tests.ps1 b/scripts/pester/Get-HelloWorld.Tests.ps1 new file mode 100644 index 0000000000..eac96930e6 --- /dev/null +++ b/scripts/pester/Get-HelloWorld.Tests.ps1 @@ -0,0 +1,13 @@ +"starting test script" | out-host + +$here = Split-Path -Parent $MyInvocation.MyCommand.Path +$here | out-host +$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".") +$sut | out-host +. "$here\$sut" + +Describe "Get-HelloWorld" { + It "outputs 'Hello world!'" { + Get-HelloWorld | Should Be 'Hello world!' + } +} diff --git a/scripts/pester/Get-HelloWorld.ps1 b/scripts/pester/Get-HelloWorld.ps1 new file mode 100644 index 0000000000..c89b09a965 --- /dev/null +++ b/scripts/pester/Get-HelloWorld.ps1 @@ -0,0 +1,3 @@ +function Get-HelloWorld { + 'Hello world!' +}