Sha256: fc1afa1f898b2aa79c063166d64e8dc9d982dd5bc02677be69b959c828cbe179
Contents?: true
Size: 699 Bytes
Versions: 4
Compression:
Stored size: 699 Bytes
Contents
require 'redbreast/template_generators/swift_template_generator' module Redbreast module TemplateGenerator module ColorTest # Used for creating color tests in swift. class Swift < TemplateGenerator::Swift include ERB::Util def template <<~TEMPLATE import UIKit import XCTest @testable import <%= bundle[:testableImport] %> //THIS FILE IS AUTOGENERATED, DO NOT EDIT BY HAND class <%= File.basename(bundle[:outputTestPathColors], ".*") %>: XCTestCase { func testIfColorsArePresent() { <%= create_swift_test_cases(names: asset_names, declaration: '_ = UIColor.', app_name: app_name) %> } } TEMPLATE end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems