Skip to content

Commit

Permalink
parser seems to be ok - references #265
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Oct 16, 2014
1 parent 1234227 commit b67c113
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/Paket.Tests/Lockfile/GeneratorSpecs.fs
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,26 @@ github "owner:project2:commit2" "folder/file.fs" """
| _ -> failwith "error")
|> LockFileSerializer.serializeSourceFiles
|> shouldEqual (normalizeLineEndings expectedWithGitHub)


let config2 = """
source https://www.myget.org/F/ravendb3/
nuget RavenDB.Client == 3.0.3498-Unstable
"""

let graph2 = [
"RavenDB.Client","3.0.3498-Unstable",[]
]

let expected2 = """NUGET
remote: https://www.myget.org/F/ravendb3
specs:
RavenDB.Client (3.0.3498-Unstable)"""

[<Test>]
let ``should generate lock file for RavenDB.Client``() =
let cfg = DependenciesFile.FromCode(config2)
cfg.Resolve(noSha1,VersionsFromGraph graph2, PackageDetailsFromGraph graph2).ResolvedPackages.GetModelOrFail()
|> LockFileSerializer.serializePackages cfg.Options
|> shouldEqual (normalizeLineEndings expected2)

0 comments on commit b67c113

Please sign in to comment.