mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-06-19 01:46:22 +08:00
Fix iOS 6 test for tableview header height.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user