From 99df0eb941dd8ddbc83d3f3605a34f6a686ac85e Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 2 Sep 2016 09:52:19 -0700 Subject: [PATCH] Test that #121 doesn't happen --- decoder_test.go | 6 ++++++ test-fixtures/block_assign.hcl | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 test-fixtures/block_assign.hcl diff --git a/decoder_test.go b/decoder_test.go index ef39f6b..39ea046 100644 --- a/decoder_test.go +++ b/decoder_test.go @@ -350,6 +350,12 @@ func TestDecode_interface(t *testing.T) { "default": `${replace("europe-west", "-", " ")}`, }, }, + + { + "block_assign.hcl", + true, + nil, + }, } for _, tc := range cases { diff --git a/test-fixtures/block_assign.hcl b/test-fixtures/block_assign.hcl new file mode 100644 index 0000000..ee8b06f --- /dev/null +++ b/test-fixtures/block_assign.hcl @@ -0,0 +1,2 @@ +environment = "aws" { +}