kitchen-pester 0.12.1 → 0.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da53197e406192ac305bcdc54725ecd52787ee9b9bccff32e8438f7bd8f31796
4
- data.tar.gz: 0c28027331124a37ce8dd730598b191a26f3e69df8b4240921eead3f289e7c52
3
+ metadata.gz: 138cd15e107c0e0331ed15ad42b8f58771c03cf14c4af44a861aa01a54957198
4
+ data.tar.gz: 4c57297d38ba62710e58e246573a603b37dde2b076026f023afe2bd36edc7137
5
5
  SHA512:
6
- metadata.gz: bff325f80a68eb821aecd0d761c29e4caa5c6cb9bd2f738f13219d3c9c8496ee73d34b2dbaa6e41c44392971f85fce6387765a1c4c81a6e41a7801c42e2987ee
7
- data.tar.gz: d1ad67092b11dc19c7d455a1b51c62a55d1aeb5aaed613526005f2f264710d8504de18a96b56fb27646304001f5cc661e9b8945d909c79a71b3f212275bd4f1a
6
+ metadata.gz: 0262276aa0ad1d0402de1449383286096e66599f98e7004059d404a9309da9491e9677038fad917e517e8d5e40fd94f2cfc8b224598960e1e2eee05e72efa901
7
+ data.tar.gz: 866e065c5caa9472fcad981cdecaa3a5815bbb8c2a7b28ce1a804df7ab08a7834b0175fecbc6712f57165fae982b6a86312761bc97460578cb47d766e68acc88
@@ -136,8 +136,8 @@ module Kitchen
136
136
  <<-CMD
137
137
  Import-Module -Name Pester -Force
138
138
 
139
- $TestPath = "#{config[:root_path]}"
140
- $OutputFilePath = Join-Path $TestPath -ChildPath 'PesterTestResults.xml'
139
+ $TestPath = Join-Path "#{config[:root_path]}" -ChildPath "suites"
140
+ $OutputFilePath = Join-Path "#{config[:root_path]}" -ChildPath 'PesterTestResults.xml'
141
141
 
142
142
  $options = New-PesterOption -TestSuiteName "Pester - #{instance.to_str}"
143
143
 
@@ -165,7 +165,7 @@ module Kitchen
165
165
  }
166
166
 
167
167
  $global:ProgressPreference = 'SilentlyContinue'
168
- $env:PSModulePath = "$(Join-Path (Get-Item -Path $env:TEMP).FullName -ChildPath 'verifier/modules');$env:PSModulePath"
168
+ $env:PSModulePath = "$(Join-Path "#{config[:root_path]}" -ChildPath 'modules');$env:PSModulePath"
169
169
 
170
170
  #{script}
171
171
  EOH
@@ -196,8 +196,8 @@ module Kitchen
196
196
  @(Get-Module -Name $Name -ListAvailable -ErrorAction SilentlyContinue).Count -gt 0
197
197
  }
198
198
 
199
- $VerifierModulePath = Confirm-Directory -Path $env:TEMP/verifier/modules
200
- $VerifierTestsPath = Confirm-Directory -Path $env:TEMP/verifier/pester
199
+ $VerifierModulePath = Confirm-Directory -Path (Join-Path #{config[:root_path]} -ChildPath 'modules')
200
+ $VerifierDownloadPath = Confirm-Directory -Path (Join-Path #{config[:root_path]} -ChildPath 'pester')
201
201
 
202
202
  $env:PSModulePath = "$VerifierModulePath;$PSModulePath"
203
203
 
@@ -241,14 +241,7 @@ module Kitchen
241
241
  catch {
242
242
  Write-Host "Installing from Github"
243
243
 
244
- $downloadFolder = if (Test-Path "$env:TEMP/PesterDownload") {
245
- "$env:TEMP/PesterDownload"
246
- }
247
- else {
248
- New-Item -ItemType Directory -Path "$env:TEMP/PesterDownload"
249
- }
250
-
251
- $zipFile = Join-Path (Get-Item -Path $downloadFolder).FullName -ChildPath "pester.zip"
244
+ $zipFile = Join-Path (Get-Item -Path $VerifierDownloadPath).FullName -ChildPath "pester.zip"
252
245
 
253
246
  if (-not (Test-Path $zipfile)) {
254
247
  $source = 'https://github.com/pester/Pester/archive/4.10.1.zip'
@@ -348,7 +341,7 @@ module Kitchen
348
341
  end
349
342
 
350
343
  def sandboxify_path(path)
351
- File.join(sandbox_path, path.sub(%r{#{suite_test_folder}/}i, ""))
344
+ File.join(sandbox_path, "suites", path.sub(%r{#{suite_test_folder}/}i, ""))
352
345
  end
353
346
 
354
347
  # Returns an Array of common helper filenames currently residing on the
@@ -1,5 +1,5 @@
1
1
  module Kitchen
2
2
  module Verifier
3
- PESTER_VERSION = "0.12.1".freeze
3
+ PESTER_VERSION = "0.12.2".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-pester
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Murawski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-06 00:00:00.000000000 Z
11
+ date: 2020-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler