Skip to content
This repository has been archived by the owner on Jan 14, 2021. It is now read-only.

Commit

Permalink
Merge pull request #2 from gavinbunney/master
Browse files Browse the repository at this point in the history
Fix bundle selection for test image loading
  • Loading branch information
bahlo committed Aug 15, 2014
2 parents 485e13c + 67b09f3 commit e3aed1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SwiftGifTests/GifTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class GifTests: XCTestCase {
override func setUp() {
super.setUp()

imageData = NSData(contentsOfURL: NSBundle.mainBundle().URLForResource("test", withExtension: "gif"))
imageData = NSData(contentsOfURL: NSBundle(forClass:GifTests.self).URLForResource("test", withExtension: "gif"))

let cfImageData = imageData! as CFDataRef
source = CGImageSourceCreateWithData(cfImageData, nil)
Expand Down

0 comments on commit e3aed1a

Please sign in to comment.