class Redbreast::TemplateGenerator::ColorTest::SwiftUI
Used for creating color tests in swift.
Public Instance Methods
template()
click to toggle source
# File lib/redbreast/template_generators/tests/colors/swiftui_colors_tests_template_generator.rb, line 9 def template <<~TEMPLATE import SwiftUI 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: '_ = Color.', app_name: app_name) %> } } TEMPLATE end