Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Describe "New-Item" -Tags "CI" {
Test-Path $FullyQualifiedFile | Should -BeTrue
}

It "Should create a file with sample text inside the file using the Value switch" {
It "Should create a file with sample text inside the file using the Value parameter" {
$expected = "This is test string"
New-Item -Name $testfile -Path $tmpDirectory -ItemType file -Value $expected

Expand All @@ -89,15 +89,15 @@ Describe "New-Item" -Tags "CI" {
Get-Content $FullyQualifiedFile | Should -Be $expected
}

It "Should not create a file when the Name switch is not used and only a directory specified" {
It "Should not create a file when the Name parameter is not used and only a directory specified" {
#errorAction used because permissions issue in Windows
New-Item -Path $tmpDirectory -ItemType file -ErrorAction SilentlyContinue

Test-Path $FullyQualifiedFile | Should -BeFalse

}

It "Should create a file when the Name switch is not used but a fully qualified path is specified" {
It "Should create a file when the Name parameter is not used but a fully qualified path is specified" {
New-Item -Path $FullyQualifiedFile -ItemType file

Test-Path $FullyQualifiedFile | Should -BeTrue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Describe "Set-Location" -Tags "CI" {
$(Get-Location).Path | Should -BeExactly $startDirectory.Path
}

It "Should be able to use the Path switch" {
It "Should be able to use the Path parameter" {
{ Set-Location -Path $target } | Should -Not -Throw
}

Expand Down