Merge pull request #685 from svanharmelen/f-add-test-for-diffing-diffs

core: adding a test for the change in PR #681 (diffing diffs)
This commit is contained in:
Mitchell Hashimoto 2014-12-16 10:23:42 -08:00
commit 3b5c8a44ea
1 changed files with 15 additions and 0 deletions

View File

@ -492,6 +492,21 @@ func TestInstanceDiffSame(t *testing.T) {
},
true,
},
{
&InstanceDiff{
Attributes: map[string]*ResourceAttrDiff{
"foo.#": &ResourceAttrDiff{
Old: "0",
NewComputed: true,
},
},
},
&InstanceDiff{
Attributes: map[string]*ResourceAttrDiff{},
},
true,
},
}
for i, tc := range cases {