Sha256: a30f257260c929bec937723ba93078390748288f0b1d9d4f2527cd960b5d0e96

Contents?: true

Size: 735 Bytes

Versions: 3

Compression:

Stored size: 735 Bytes

Contents

require_relative '../objc_template_generator'

module Redbreast
    module TemplateGenerator
        module Test
            class ObjC < TemplateGenerator::ObjC
                include ERB::Util

                def h_template()
                    nil
                end
                    
                def m_template()
<<-TEMPLATE

#import <XCTest/XCTest.h>
#import <"UIImage+<%= File.basename(bundle[:outputSourcePath]) %>.h">

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

@end

@implementation Test

- (void)testExample {
    <%- image_names.each do |name| -%>
    [UIImage clean_variable_name(name)];
    <%- end -%>
}

@end

TEMPLATE
                end

            end
        end
    end
  end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
redbreast-0.1.2 lib/redbreast/template_generators/tests/objc_tests_template_generator.rb
redbreast-0.1.1 lib/redbreast/template_generators/tests/objc_tests_template_generator.rb
redbreast-0.1.0 lib/redbreast/template_generators/tests/objc_tests_template_generator.rb