Test/Get-Version.Tests.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
param ( [string] $PSScriptRoot = $( if ( $PSScriptRoot ) { $PSScriptRoot } else { Get-Location } ) ) . $PSScriptRoot\TestHelper.ps1 Describe 'Get-Version' { Context 'Configured RScript' { BeforeAll { Set-RScriptPath -Path $RScriptPath } It 'returns the version' { Get-RVersion | Should -BeLike '* version *' } } } |