Commit 08a3fbc9 authored by Fabio Pelosin's avatar Fabio Pelosin

[Specs Integration] Add check for output.

parent e12b74c7
ruby ROOT/bin/pod install --no-update --no-doc --verbose --no-color
Resolving dependencies of `./Podfile'
Resolving dependencies for target `default' (iOS 6.0)
- Reachability (= 3.1.0)
Downloading dependencies
-> Installing Reachability (3.1.0)
$ /usr/bin/git config core.bare
true
> Cloning git repo
$ /usr/bin/git rev-list --max-count=1 v3.1.0
f7176f4798d068d233dca5223ae4bd9c8059e830
$ /usr/bin/git init
Initialized empty Git repository in ROOT/tmp/Pods/Reachability/.git/
$ /usr/bin/git remote add origin 'CACHES_DIR/Git/48f11286750afa2e2eb80564e288f42eed7cbab6'
$ /usr/bin/git fetch origin tags/v3.1.0
$ /usr/bin/git reset --hard FETCH_HEAD
HEAD is now at f7176f4 updated podspec
$ /usr/bin/git checkout -b activated-pod-commit
> Using existing documentation
Generating support files
- Running pre install hooks
- Generating project
- Installing targets
- Generating xcconfig file at `./Pods/Pods.xcconfig'
- Generating prefix header at `./Pods/Pods-prefix.pch'
- Generating copy resources script at `./Pods/Pods-resources.sh'
- Running post install hooks
- Writing Xcode project file to `./Pods/Pods.xcodeproj'
- Writing lockfile in `./Podfile.lock'
[!] From now on use `SampleApp.xcworkspace'.
Integrating `libPods.a' into target `SampleApp' of Xcode project `./SampleApp.xcodeproj'.
# ---------------------------------- #
# CocoaPods Integration tests take 2 #
# ---------------------------------- #
# ------------------------------------ #
# CocoaPods Integration tests take 2 #
# ------------------------------------ #
#-----------------------------------------------------------------------------#
......@@ -10,10 +10,10 @@
# 1. For each test there is a folder with a `before` and `after` subfolders.
# 2. The contents of the before folder are copied to the `TMP_DIR` folder and
# then the given arguments are passed to the `POD_BINARY`.
# 3. After the pod command completes the execution the each file in the `after`
# subfolder is compared to be to the contents of the temporary directory.
# If the contents of the file do not match an error is registered. Xcode
# projects are compared in an UUID agnostic way.
# 3. After the pod command completes the execution the each file in the
# `after` subfolder is compared to be to the contents of the temporary
# directory. If the contents of the file do not match an error is
# registered. Xcode projects are compared in an UUID agnostic way.
#
# Notes:
#
......@@ -43,8 +43,8 @@
# requirement (`it` call).
require 'pathname'
ROOT = Pathname.new(File.expand_path('../../', __FILE__))
TMP_DIR = ROOT + 'tmp'
ROOT = Pathname.new(File.expand_path('../../', __FILE__))
TMP_DIR = ROOT + 'tmp'
POD_BINARY = "ruby " + ROOT.to_s + '/bin/pod' unless defined? POD_BINARY
$:.unshift((ROOT + 'spec').to_s)
......@@ -55,6 +55,7 @@ require 'Xcodeproj'
#-----------------------------------------------------------------------------#
# @!group Description implementation
def pod_check(command, folder)
......@@ -122,7 +123,7 @@ def check_with_folder(folder)
case expected
when %r[/xcuserdata/]
# skip
when %r[\Podfile\.lock$]
when %r[Podfile\.lock$]
compare_lockfile(expected, produced, relative_path)
when %r[\.pbxproj$]
compare_xcodeproj(expected, produced, relative_path)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment