Class: Redbreast::TemplateGenerator::ImageTest::ObjC
- Includes:
- ERB::Util
- Defined in:
- lib/redbreast/template_generators/tests/images/objc_images_tests_template_generator.rb
Overview
Used for creating image tests in objective-c.
Instance Method Summary collapse
Methods inherited from ObjC
Instance Method Details
#h_template ⇒ Object
9 10 11 |
# File 'lib/redbreast/template_generators/tests/images/objc_images_tests_template_generator.rb', line 9 def h_template nil end |
#m_template ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# 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 |