spec/acceptance/dsc/class.rb in ruby-pwsh-0.10.3 vs spec/acceptance/dsc/class.rb in ruby-pwsh-0.11.0.rc.1
- old
+ new
@@ -30,11 +30,11 @@
"dsc_description => 'Example role capability file'",
'}'
].join(' ')
end
- before(:each) do
+ before do
reset_command = <<~RESET_COMMAND
$PsrcPath = '#{psrc_path}'
# Delete the test PSRC fixture if it exists
If (Test-Path -Path $PsrcPath -PathType Leaf) {
Remove-Item $PsrcPath -Force
@@ -66,11 +66,11 @@
"dsc_description => 'Updated role capability file'",
'}'
].join(' ')
end
- before(:each) do
+ before do
reset_command = <<~RESET_COMMAND
$PsrcPath = '#{psrc_path}'
# Delete the test PSRC fixture if it exists
If (Test-Path -Path $PsrcPath -PathType Leaf) {
Remove-Item $PsrcPath -Force
@@ -102,10 +102,10 @@
"dsc_path => '#{psrc_path}'",
'}'
].join(' ')
end
- before(:each) do
+ before do
reset_command = <<~RESET_COMMAND
$PsrcPath = '#{psrc_path}'
# Delete the test PSRC fixture if it exists
If (!(Test-Path -Path $PsrcPath -PathType Leaf)) {
# Create the test PSRC fixture