class Redbreast::TemplateGenerator::ImageTest::ObjC

Used for creating image tests in objective-c.

Public Instance Methods

h_template() click to toggle source
# File lib/redbreast/template_generators/tests/images/objc_images_tests_template_generator.rb, line 9
def h_template
  nil
end
m_template() click to toggle source
# File lib/redbreast/template_generators/tests/images/objc_images_tests_template_generator.rb, line 13
        def m_template
          <<~TEMPLATE

            #import <XCTest/XCTest.h>
            #import "UIImage+<%= app_name.nil? ? "Common" : app_name %>.h"

            @interface <%= File.basename(bundle[:outputTestPathImages]) %> : XCTestCase

            @end

            @implementation Test

            - (void)testExample
            {<%= create_objc_test_cases(names: asset_names, variable: '\n\t[UIImage %s];')%>
            }

            @end
          TEMPLATE
        end