Skip to content

Commit

Permalink
Merge pull request realm#609 from realm/nn-fix-swift-test
Browse files Browse the repository at this point in the history
[SPM] Fix resource path in tests
  • Loading branch information
jpsim committed Apr 8, 2016
2 parents c7460e6 + 36c7365 commit 47dc9a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Tests/SwiftLintFramework/ConfigurationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ extension String {
extension XCTestCase {
var bundlePath: String {
#if SWIFT_PACKAGE
return "Source/SwiftLintFrameworkTests/Resources".absolutePathRepresentation()
return "Tests/SwiftLintFramework/Resources".absolutePathRepresentation()
#else
return NSBundle(forClass: self.dynamicType).resourcePath!
#endif
Expand Down
2 changes: 1 addition & 1 deletion Tests/SwiftLintFramework/Yaml+SwiftLintTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class YamlSwiftLintTests: XCTestCase {

func getTestYaml() -> String {
#if SWIFT_PACKAGE
let path = "Source/SwiftLintFrameworkTests/Resources/test.yml"
let path = "Tests/SwiftLintFramework/Resources/test.yml"
.absolutePathRepresentation()
if let ymlString = try? String(contentsOfFile: path) {
return ymlString
Expand Down

0 comments on commit 47dc9a8

Please sign in to comment.