grim/convey

Parents ce754233686c
Children 0426a925c8fa
Update some unit tests since the behavior changed but the failed test wasn't caught
--- a/environment/mapper_test.go Mon May 08 19:39:30 2017 -0500
+++ b/environment/mapper_test.go Mon May 08 19:44:05 2017 -0500
@@ -49,8 +49,8 @@
func (e *environmentSuite) TestPartialMatches(t *testing.T) {
os.Setenv("FOO", "bar")
os.Setenv("BAR", "bonk")
- Expect(Mapper("${FOO}", []string{"FOOBAR"})).To(Equal(""))
- Expect(Mapper("${BARBAZ}", []string{"BAR"})).To(Equal(""))
+ Expect(Mapper("${FOO}", []string{"FOOBAR"})).To(Equal("$FOO"))
+ Expect(Mapper("${BARBAZ}", []string{"BAR"})).To(Equal("$BARBAZ"))
}
func (e *environmentSuite) TestRecursiveMatch(t *testing.T) {