Skip to content

Commit 9c264c3

Browse files
committed
Move variable into test case
1 parent 40df4d5 commit 9c264c3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Source/CarthageKitTests/ProjectSpec.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ import Tentacle
1515

1616
class ProjectSpec: QuickSpec {
1717
override func spec() {
18-
let directoryURL = NSBundle(forClass: self.dynamicType).URLForResource("CartfilePrivateOnly", withExtension: nil)!
19-
2018
describe("loadCombinedCartfile") {
2119
it("should load a combined Cartfile when only a Cartfile is present") {
2220
let directoryURL = NSBundle(forClass: self.dynamicType).URLForResource("CartfileOnly", withExtension: nil)!
@@ -30,6 +28,7 @@ class ProjectSpec: QuickSpec {
3028
}
3129

3230
it("should load a combined Cartfile when only a Cartfile.private is present") {
31+
let directoryURL = NSBundle(forClass: self.dynamicType).URLForResource("CartfilePrivateOnly", withExtension: nil)!
3332
let result = Project(directoryURL: directoryURL).loadCombinedCartfile().single()
3433
expect(result).notTo(beNil())
3534
expect(result?.value).notTo(beNil())

0 commit comments

Comments
 (0)