From 0f8cdf19432fc0499db474be3eec8bcca1926f90 Mon Sep 17 00:00:00 2001 From: Christian Tietze Date: Mon, 22 Nov 2021 13:24:19 +0100 Subject: [PATCH] rename test file --- SwiftCSVTests/NamedViewTests.swift | 2 +- SwiftCSVTests/ResourceHelper.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SwiftCSVTests/NamedViewTests.swift b/SwiftCSVTests/NamedViewTests.swift index a02af9a..f294548 100644 --- a/SwiftCSVTests/NamedViewTests.swift +++ b/SwiftCSVTests/NamedViewTests.swift @@ -9,7 +9,7 @@ import XCTest @testable import SwiftCSV -class CSVTests: XCTestCase { +class NamedViewTests: XCTestCase { let string = "id,name,age\n1,Alice,18\n2,Bob,19\n3,Charlie,20" var csv: CSV! diff --git a/SwiftCSVTests/ResourceHelper.swift b/SwiftCSVTests/ResourceHelper.swift index 663de93..8b5c378 100644 --- a/SwiftCSVTests/ResourceHelper.swift +++ b/SwiftCSVTests/ResourceHelper.swift @@ -4,7 +4,7 @@ import Foundation // This is a workaround for SwiftPM, becasue SwiftPM is not yet support for include resources with targets.(https://bugs.swift.org/browse/SR-2866) struct ResourceHelper { static func url(forResource name: String, withExtension type: String) -> URL? { - let bundle = Bundle(for: CSVTests.self) + let bundle = Bundle(for: NamedViewTests.self) if let url = bundle.url(forResource: name, withExtension: type) { return url } else if let realBundle = Bundle(path: "\(bundle.bundlePath)/../../../../SwiftCSVTests") {