Skip to content

Commit

Permalink
Merge pull request #217 from CircleCI-Public/214-test
Browse files Browse the repository at this point in the history
Add a test for #213
  • Loading branch information
Zachary Scott authored Nov 28, 2018
2 parents 898431e + 661ab32 commit 1662c99
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions references/references_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,12 @@ var _ = Describe("Parsing Orbs", func() {
Expect(err).Should(MatchError("Invalid orb catdog. Expected a namespace and orb in the form 'namespace/orb'"))

})

It("Should split correctly when dev label contains a fwslash", func() {
ns, orb, version, err := references.SplitIntoOrbNamespaceAndVersion("foo/bar@dev:bah/bah")
Expect(ns).To(Equal("foo"))
Expect(orb).To(Equal("bar"))
Expect(version).To(Equal("dev:bah/bah"))
Expect(err).ShouldNot(HaveOccurred())
})
})

0 comments on commit 1662c99

Please sign in to comment.