Fix poem inactivity checking

This commit is contained in:
Vit Brunner
2014-12-21 22:25:39 +01:00
parent e498ef0ff9
commit e0a45f08a5
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -15,6 +15,9 @@ setPoems = () ->
}, {
meta: { Active: true }
content: [{ section: '3', text: 'three' }]
}, {
meta: { }
content: [{ section: '4', text: 'four' }]
}]
test "has default content", () ->
@@ -32,3 +35,4 @@ test "gets inactive", () ->
setPoems()
inactive = poems.getInactive()
equal inactive[0].content[0].section, '2'
equal inactive[1].content[0].section, '4'