Test/Get-Version.Tests.ps1


param (
    [string] $PSScriptRoot = $( if ( $PSScriptRoot ) { $PSScriptRoot } else { Get-Location } )
)

. $PSScriptRoot\TestHelper.ps1

Describe 'Get-Version' {
    Context 'Configured RScript' {
        BeforeAll {
            Set-RScriptPath -Path 'C:\Program Files\Microsoft\R Open\R-3.5.2\bin\x64\Rscript.exe'
        }
        It 'returns the version' {
            Get-RVersion | Should -BeLike '* version *'
        }
    }
}