Skip to content

Commit

Permalink
Snapshot test case updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Crooke committed Aug 5, 2015
1 parent 02e00de commit 9b38694
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions ComponentSnapshotTestCase/CKComponentSnapshotTestCase.mm
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ - (BOOL)compareSnapshotOfComponent:(CKComponent *)component
return [self compareSnapshotOfView:v
referenceImagesDirectory:referenceImagesDirectory
identifier:identifier
tolerance:0
error:errorPtr];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ Pod::Spec.new do |s|
s.platform = :ios, '7.0'
s.requires_arc = true
s.source_files = '**/*.h', '**/*.m', '**/*.mm'
s.dependency 'FBSnapshotTestCase'
s.dependency 'FBSnapshotTestCase/Core'
s.frameworks = 'UIKit', 'XCTest'
end
2 changes: 1 addition & 1 deletion ComponentTextKitApplicationTests/CKTextKitTests.mm
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ static BOOL checkAttributes(const CKTextKitAttributes &attributes, const CGSize
FBSnapshotTestController *controller = [[FBSnapshotTestController alloc] init];
UIImage *labelImage = UITextViewImageWithAttributes(attributes, constrainedSize);
UIImage *textKitImage = CKTextKitImageWithAttributes(attributes, constrainedSize);
return [controller compareReferenceImage:labelImage toImage:textKitImage error:nil];
return [controller compareReferenceImage:labelImage toImage:textKitImage tolerance:0 error:nil];
}

@implementation CKTextKitTests
Expand Down
14 changes: 7 additions & 7 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ PODS:
- ComponentKit (0.12)
- ComponentKitTestLib (0.12)
- ComponentSnapshotTestCase (0.12):
- FBSnapshotTestCase
- FBSnapshotTestCase (1.8.1)
- FBSnapshotTestCase/Core
- FBSnapshotTestCase/Core (2.0.3)
- OCMock (2.2.4)

DEPENDENCIES:
Expand All @@ -14,17 +14,17 @@ DEPENDENCIES:

EXTERNAL SOURCES:
ComponentKit:
:path: .
:path: "."
ComponentKitTestLib:
:path: ./ComponentKitTestLib
:path: "./ComponentKitTestLib"
ComponentSnapshotTestCase:
:path: ./ComponentSnapshotTestCase
:path: "./ComponentSnapshotTestCase"

SPEC CHECKSUMS:
ComponentKit: 4bf3ce82a9e28f2ec26ba112102a2120ef312aa6
ComponentKitTestLib: 4c28d18b6f2f0f25fec043bb17113781f019c095
ComponentSnapshotTestCase: ce43fe9c9645718594e976e229dcbf1dcc49afd1
FBSnapshotTestCase: 3dc3899168747a0319c5278f5b3445c13a6532dd
ComponentSnapshotTestCase: eb054752d912bd14666c6db6614c1a55e59a3164
FBSnapshotTestCase: d0eeca6bf87958e088b254396ae66873f971cfb1
OCMock: a6a7dc0e3997fb9f35d99f72528698ebf60d64f2

COCOAPODS: 0.37.2

0 comments on commit 9b38694

Please sign in to comment.