forked from fastlane/fastlane
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michael Furtak
committed
Apr 22, 2016
1 parent
05a08dd
commit 0e5fe4f
Showing
6 changed files
with
18 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file modified
BIN
+172 Bytes
(350%)
gym/spec/fixtures/xcodebuild_fixes/ios_app.app/Info.plist
Binary file not shown.
8 changes: 8 additions & 0 deletions
8
gym/spec/fixtures/xcodebuild_fixes/ios_watch_app.app/Info.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>DTSDKName</key> | ||
<string>watchos2.1</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
require 'gym/xcodebuild_fixes/generic_archive_fix' | ||
|
||
describe Gym do | ||
describe Gym::XcodebuildFixes do | ||
let (:watch_ipa) { 'spec/fixtures/xcodebuild_fixes/ios watch_app.app/Info.plist' } | ||
let (:ios_ipa) { 'spec/fixtures/xcodebuild_fixes/ios_app.app/Info.plist' } | ||
let (:watch_app) { 'spec/fixtures/xcodebuild_fixes/ios_watch_app.app' } | ||
let (:ios_app) { 'spec/fixtures/xcodebuild_fixes/ios_app.app' } | ||
|
||
it "can detect watch application" do | ||
expect(Gym::XcodebuildFixes.is_watchkit_ipa?(watch_ipa)).to eq(true) | ||
expect(Gym::XcodebuildFixes.is_watchkit_app?(watch_app)).to eq(true) | ||
end | ||
|
||
it "doesn't detect iOS application" do | ||
expect(Gym::XcodebuildFixes.is_watchkit_ipa?(ios_ipa)).to eq(false) | ||
expect(Gym::XcodebuildFixes.is_watchkit_app?(ios_app)).to eq(false) | ||
end | ||
end | ||
end |