Skip to content

Commit

Permalink
chore(bundler): Correct a few test / variable names
Browse files Browse the repository at this point in the history
This is not parsing JSON but YAML.

Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
  • Loading branch information
sschuberth committed Jul 1, 2024
1 parent 74ab0cd commit 7e49e1b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ class BundlerTest : WordSpec({
}
}

"createFromJson()" should {
"parse JSON metadata for a Gem correctly" {
val rspecGemJson = File("src/test/assets/rspec-3.7.0.yaml")
"createFromGem()" should {
"parse YAML metadata for a Gem correctly" {
val gemSpecFile = File("src/test/assets/rspec-3.7.0.yaml")

val gemspec = GemSpec.createFromGem(rspecGemJson.readValue())
val gemspec = GemSpec.createFromGem(gemSpecFile.readValue())

gemspec shouldBe GemSpec(
name = "rspec",
Expand Down

0 comments on commit 7e49e1b

Please sign in to comment.