Skip to content

Commit

Permalink
Create integration test for bootstrapper - references #1240
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Nov 19, 2015
1 parent 78e191e commit 041b320
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion integrationtests/Paket.IntegrationTests/InitSpecs.fs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ let ``#1040 init should download release version of bootstrapper``() =
let ``#1240 current bootstrapper should work``() =
CleanDir (scenarioTempPath "i001240-bootstrapper")
let paketToolPath = FullName(__SOURCE_DIRECTORY__ + "../../../bin/paket.bootstrapper.exe")
CopyFile (scenarioTempPath "i001240-bootstrapper") paketToolPath

let result =
ExecProcessAndReturnMessages (fun info ->
info.FileName <- paketToolPath
info.FileName <- scenarioTempPath "i001240-bootstrapper" </> "paket.bootstrapper.exe"
info.WorkingDirectory <- scenarioTempPath "i001240-bootstrapper"
info.Arguments <- "") (System.TimeSpan.FromMinutes 5.)
if result.ExitCode <> 0 then
Expand All @@ -33,4 +34,7 @@ let ``#1240 current bootstrapper should work``() =
failwith errors

String.Join(Environment.NewLine,result.Messages).StartsWith("No version specified. Downloading latest stable.")
|> shouldEqual true

File.Exists(scenarioTempPath "i001240-bootstrapper" </> "paket.exe")
|> shouldEqual true

0 comments on commit 041b320

Please sign in to comment.