~mandel/unity-scope-click/rebuild-new-udm-rtm

« back to all changes in this revision

Viewing changes to libclickscope/tests/test_departments-db.cpp

  • Committer: CI Train Bot
  • Author(s): Pawel Stolowski
  • Date: 2015-01-09 21:30:34 UTC
  • mfrom: (299.2.1 fix-1390191-rtm)
  • Revision ID: ci-train-bot@canonical.com-20150109213034-3jyj7kx40xmhfhg1
Removed the restriction in get_children method that filtered empty departments out. Fixes: #1390191
Approved by: PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
188
188
    }
189
189
    {
190
190
        auto depts = db->get_children_departments("games");
191
 
        EXPECT_EQ(2u, depts.size());
 
191
        EXPECT_EQ(3u, depts.size());
192
192
        EXPECT_TRUE(std::find(depts.begin(), depts.end(), DepartmentsDb::DepartmentInfo("rpg", false)) != depts.end());
193
193
        EXPECT_TRUE(std::find(depts.begin(), depts.end(), DepartmentsDb::DepartmentInfo("fps", false)) != depts.end());
194
 
        EXPECT_FALSE(std::find(depts.begin(), depts.end(), DepartmentsDb::DepartmentInfo("card", false)) != depts.end());
 
194
        EXPECT_TRUE(std::find(depts.begin(), depts.end(), DepartmentsDb::DepartmentInfo("card", false)) != depts.end());
195
195
    }
196
196
}
197
197