Sha256: b724000855f690b25655ffb93ca3f835c0deab7f8f7b302fd4abf4da380e4e64

Contents?: true

Size: 700 Bytes

Versions: 15

Compression:

Stored size: 700 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

15 entries across 15 versions & 1 rubygems

Version Path
redbreast-1.4.2 lib/redbreast/template_generators/tests/colors/swift_colors_tests_template_generator.rb
redbreast-1.4.1 lib/redbreast/template_generators/tests/colors/swift_colors_tests_template_generator.rb
redbreast-1.4.0 lib/redbreast/template_generators/tests/colors/swift_colors_tests_template_generator.rb
redbreast-1.3.1 lib/redbreast/template_generators/tests/colors/swift_colors_tests_template_generator.rb
redbreast-1.3.0 lib/redbreast/template_generators/tests/colors/swift_colors_tests_template_generator.rb
redbreast-1.2.5 lib/redbreast/template_generators/tests/colors/swift_colors_tests_template_generator.rb
redbreast-1.2.4 lib/redbreast/template_generators/tests/colors/swift_colors_tests_template_generator.rb
redbreast-1.2.3 lib/redbreast/template_generators/tests/colors/swift_colors_tests_template_generator.rb
redbreast-1.2.2 lib/redbreast/template_generators/tests/colors/swift_colors_tests_template_generator.rb
redbreast-1.2.1 lib/redbreast/template_generators/tests/colors/swift_colors_tests_template_generator.rb
redbreast-1.2.0 lib/redbreast/template_generators/tests/colors/swift_colors_tests_template_generator.rb
redbreast-1.1.2 lib/redbreast/template_generators/tests/colors/swift_colors_tests_template_generator.rb
redbreast-1.1.1 lib/redbreast/template_generators/tests/colors/swift_colors_tests_template_generator.rb
redbreast-1.1.0 lib/redbreast/template_generators/tests/colors/swift_colors_tests_template_generator.rb
redbreast-1.0.4 lib/redbreast/template_generators/tests/colors/swift_colors_tests_template_generator.rb