Fix iOS 6 test for tableview header height.

This commit is contained in:
Mark Rickert
2013-10-18 08:59:54 -04:00
parent 3bda9d653f
commit efd8d9889c

View File

@@ -135,7 +135,8 @@ describe "PM::Table module" do
end
it "should use the default section height if none is specified" do
@subject.tableView(@subject.table_view, heightForHeaderInSection:4).should == 23.0 # Built-in default
header_height = (UIDevice.currentDevice.systemVersion.to_f >= 7.0) ? 23.0 : 22.0
@subject.tableView(@subject.table_view, heightForHeaderInSection:4).should == header_height # Built-in default
end
it "should use the set title_view_height if one is specified" do