Permalink
Browse files

Removed overriding of pwd

  • Loading branch information...
1 parent 2fc3f53 commit 1e0ee7e198fbbd86235a411cfcf7ff5b3f4b4b4e @scottmuc scottmuc committed Jul 31, 2011
@@ -1,6 +1,6 @@
-$pwd = Split-Path -Parent $MyInvocation.MyCommand.Path
-. "$pwd\Add-Numbers.ps1"
-. "$pwd\..\..\Pester.ps1"
+$here = Split-Path -Parent $MyInvocation.MyCommand.Path
+. "$here\Add-Numbers.ps1"
+. "$here\..\..\Pester.ps1"
Describe "Add-Numbers" {
@@ -1,6 +1,6 @@
-$pwd = Split-Path -Parent $MyInvocation.MyCommand.Path
-. "$pwd\Cleanup.ps1"
-. "$pwd\..\Pester.ps1"
+$here = Split-Path -Parent $MyInvocation.MyCommand.Path
+. "$here\Cleanup.ps1"
+. "$here\..\Pester.ps1"
Describe "Cleanup" {
Setup -Dir "foo"
View
@@ -1,7 +1,7 @@
-$pwd = Split-Path -Parent $MyInvocation.MyCommand.Path
+$here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".")
-. "$pwd\$sut"
-. "$pwd\..\Pester.ps1"
+. "$here\$sut"
+. "$here\..\Pester.ps1"
Describe "the In statement" {
Setup -Dir "test_path"
View
@@ -1,7 +1,7 @@
-$pwd = Split-Path -Parent $MyInvocation.MyCommand.Path
+$here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".")
-. "$pwd\$sut"
-. "$pwd\..\Pester.ps1"
+. "$here\$sut"
+. "$here\..\Pester.ps1"
Describe "the It {} block" {
@@ -1,6 +1,6 @@
-$pwd = Split-Path -Parent $MyInvocation.MyCommand.Path
-. "$pwd\Setup.ps1"
-. "$pwd\..\Pester.ps1"
+$here = Split-Path -Parent $MyInvocation.MyCommand.Path
+. "$here\Setup.ps1"
+. "$here\..\Pester.ps1"
Describe "Setup" {
@@ -1,5 +1,5 @@
-$pwd = Split-Path -Parent $MyInvocation.MyCommand.Path
-. "$pwd\..\Pester.ps1"
+$here = Split-Path -Parent $MyInvocation.MyCommand.Path
+. "$here\..\Pester.ps1"
Describe "Test-Report" {

0 comments on commit 1e0ee7e

Please sign in to comment.