spec/helpers/test_helper.rb in ProMotion-2.0.1 vs spec/helpers/test_helper.rb in ProMotion-2.1.0.beta1

- old
+ new

@@ -1,7 +1,18 @@ class TestHelper + def self.ios6 + UIDevice.currentDevice.systemVersion.to_f >= 6.0 && + UIDevice.currentDevice.systemVersion.to_f < 7.0 + end + def self.ios7 - UIDevice.currentDevice.systemVersion.to_f >= 7.0 + UIDevice.currentDevice.systemVersion.to_f >= 7.0 && + UIDevice.currentDevice.systemVersion.to_f < 8.0 + end + + def self.ios8 + UIDevice.currentDevice.systemVersion.to_f >= 8.0 && + UIDevice.currentDevice.systemVersion.to_f < 9.0 end end def silence_warnings(&block) warn_level = $VERBOSE