Skip to content

Instantly share code, notes, and snippets.

@x2on
Created November 27, 2013 10:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save x2on/7673574 to your computer and use it in GitHub Desktop.
Save x2on/7673574 to your computer and use it in GitHub Desktop.
ios-snapshot-test-case-as24
Pod::Spec.new do |s|
s.name = "FBSnapshotTestCase"
s.version = "1.0-1as24"
s.summary = "Snapshot view unit tests for iOS"
s.description = <<-DESC
A "snapshot test case" takes a configured UIView or CALayer
and uses the renderInContext: method to get an image snapshot
of its contents. It compares this snapshot to a "reference image"
stored in your source code repository and fails the test if the
two images don't match.
DESC
s.homepage = "https://github.com/facebook/ios-snapshot-test-case"
s.license = 'BSD'
s.author = 'Facebook'
s.source = { :git => "https://github.com/AutoScout24/ios-snapshot-test-case.git",
:commit => '12938e46cf71ac6b5165fef846045164bb2f744e' }
s.platform = :ios, '6.0'
s.requires_arc = true
s.framework = 'XCTest'
s.source_files = 'FBSnapshotTestCase.*', 'FBTestSnapshotController.*'
fb_def = 'FB_REFERENCE_IMAGE_DIR'
fb_val = '"$(SOURCE_ROOT)/$(PROJECT_NAME)Tests/ReferenceImages"'
s.prefix_header_contents = "#define #{fb_def} = #{fb_val}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment