Method: Deliver::AppScreenshotValidator.validate_screen_size
- Defined in:
- deliver/lib/deliver/app_screenshot_validator.rb
.validate_screen_size(screenshot, errors_found) ⇒ Object
57 58 59 60 61 62 63 |
# File 'deliver/lib/deliver/app_screenshot_validator.rb', line 57 def self.validate_screen_size(screenshot, errors_found) if screenshot.screen_size.nil? errors_found << ValidationError.new(type: ValidationError::INVALID_SCREEN_SIZE, path: screenshot.path, debug_info: "Actual size is #{get_formatted_size(screenshot)}. See the specifications to fix #{APP_SCREENSHOT_SPEC_URL}") end end |