Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Commit

Permalink
Merge pull request #452 from fastlane/update-snapshot-updater
Browse files Browse the repository at this point in the history
Update the updater code to check for the newest SnapshotHelper version
  • Loading branch information
Sam Phillips committed Feb 22, 2016
2 parents ee0b5e0 + 37fd4fb commit 79b90a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/assets/SnapshotHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@ extension XCUIElement {

// Please don't remove the lines below
// They are used to detect outdated configuration files
// SnapshotHelperVersion [[1.1]]
// SnapshotHelperVersion [1.1]
2 changes: 1 addition & 1 deletion lib/snapshot/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def verify_helper_is_current
helper_files.each do |path|
content = File.read(path)

if content.include?("start.pressForDuration(0, thenDragToCoordinate: finish)")
unless content.include?("SnapshotHelperVersion [1.1]")
UI.error "Your '#{path}' is outdated, please run `snapshot update`"
UI.error "to update your Helper file"
UI.user_error!("Please update your Snapshot Helper file")
Expand Down

0 comments on commit 79b90a8

Please sign in to comment.