-
Notifications
You must be signed in to change notification settings - Fork 11
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
Showing
31 changed files
with
249 additions
and
199 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,23 @@ | ||
language: objective-c | ||
|
||
osx_image: xcode7.2 | ||
osx_image: xcode8.1 | ||
|
||
branches: | ||
only: | ||
- master | ||
|
||
before_install: | ||
- bundle | ||
- pod install --project-directory=Tests | ||
- bundle | ||
- pod install --project-directory=Tests | ||
|
||
env: | ||
global: | ||
- WORKSPACE="Tests/Tests.xcworkspace" | ||
- SCHEME="Tests" | ||
- DESTINATION="Tests" | ||
- SDK="iphonesimulator10.1" | ||
- DESTINATION="name=iPhone 6,OS=10.1" | ||
|
||
script: | ||
- xcodebuild test -workspace "Tests/Tests.xcworkspace" -scheme "Tests" -destination 'platform=iOS Simulator,name=iPhone 6,OS=9.2' | ||
- set -o pipefail | ||
- xcodebuild build-for-testing test-without-building -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" ONLY_ACTIVE_ARCH=YES | xcpretty -c |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
platform :ios, '7.0' | ||
platform :ios, '8.0' | ||
|
||
target 'PublicAPITests' do | ||
pod 'Button', :path => '..' | ||
|
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
44 changes: 44 additions & 0 deletions
44
Tests/PublicAPITests/ButtonDeprecatedProtocol_PublicAPISpec.m
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,44 @@ | ||
#import "Specta/Specta.h" | ||
#import <Expecta/Expecta.h> | ||
#import "OCMock.h" | ||
#import "NSObject+BTNMock.h" | ||
#import "NSObject+BTNClassProperties.h" | ||
#import "Button/Button.h" | ||
|
||
SpecBegin(ButtonDeprecatedProtocol_PublicAPI) | ||
|
||
context(@"Button Deprecated Protocol", ^{ | ||
|
||
__block id buttonDeprecatedMock; | ||
|
||
beforeAll(^{ | ||
buttonDeprecatedMock = OCMProtocolMock(@protocol(ButtonDeprecated)); | ||
}); | ||
|
||
afterAll(^{ | ||
[buttonDeprecatedMock stopMocking]; | ||
}); | ||
|
||
describe(@"reportOrderWithId:currencyCode:lineItems:", ^{ | ||
|
||
it(@"is declared", ^{ | ||
expect(buttonDeprecatedMock) | ||
.to | ||
.respondTo(@selector(reportOrderWithId:currencyCode:lineItems:)); | ||
}); | ||
|
||
}); | ||
|
||
describe(@"reportOrderWithValue:orderId:currencyCode:", ^{ | ||
|
||
it(@"is declared", ^{ | ||
expect(buttonDeprecatedMock) | ||
.to | ||
.respondTo(@selector(reportOrderWithValue:orderId:currencyCode:)); | ||
}); | ||
|
||
}); | ||
|
||
}); | ||
|
||
SpecEnd |
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,124 @@ | ||
#import "Specta/Specta.h" | ||
#import <Expecta/Expecta.h> | ||
#import "OCMock.h" | ||
#import "NSObject+BTNMock.h" | ||
#import "NSObject+BTNClassProperties.h" | ||
#import "Button/Button.h" | ||
|
||
SpecBegin(ButtonProtocol_PublicAPI) | ||
|
||
context(@"Button Protocol", ^{ | ||
|
||
__block id buttonProtocolMock; | ||
|
||
beforeAll(^{ | ||
buttonProtocolMock = OCMProtocolMock(@protocol(Button)); | ||
}); | ||
|
||
afterAll(^{ | ||
[buttonProtocolMock stopMocking]; | ||
}); | ||
|
||
describe(@"configureWithApplicationId:completion:", ^{ | ||
|
||
it(@"is declared", ^{ | ||
expect(buttonProtocolMock) | ||
.to | ||
.respondTo(@selector(configureWithApplicationId:completion:)); | ||
}); | ||
|
||
}); | ||
|
||
describe(@"configureWithApplicationId:userId:completion:", ^{ | ||
|
||
it(@"is declared", ^{ | ||
expect(buttonProtocolMock) | ||
.to | ||
.respondTo(@selector(configureWithApplicationId:userId:completion:)); | ||
}); | ||
|
||
}); | ||
|
||
describe(@"willDisplayButtonWithId:context:completion:", ^{ | ||
|
||
it(@"is declared", ^{ | ||
expect(buttonProtocolMock) | ||
.to | ||
.respondTo(@selector(willDisplayButtonWithId:context:completion:)); | ||
}); | ||
|
||
}); | ||
|
||
describe(@"fetchAppActionWithButtonId:context:completion:", ^{ | ||
|
||
it(@"is declared", ^{ | ||
expect(buttonProtocolMock) | ||
.to | ||
.respondTo(@selector(fetchAppActionWithButtonId:context:completion:)); | ||
}); | ||
|
||
}); | ||
|
||
describe(@"continueUserActivity:", ^{ | ||
|
||
it(@"is declared", ^{ | ||
expect(buttonProtocolMock) | ||
.to | ||
.respondTo(@selector(continueUserActivity:)); | ||
}); | ||
|
||
}); | ||
|
||
describe(@"handleURL:", ^{ | ||
|
||
it(@"is declared", ^{ | ||
expect(buttonProtocolMock) | ||
.to | ||
.respondTo(@selector(handleURL:)); | ||
}); | ||
|
||
}); | ||
|
||
describe(@"referrerToken", ^{ | ||
|
||
it(@"is declared", ^{ | ||
expect(buttonProtocolMock) | ||
.to | ||
.respondTo(@selector(referrerToken)); | ||
}); | ||
|
||
}); | ||
|
||
describe(@"setUserIdentifier:", ^{ | ||
|
||
it(@"is declared", ^{ | ||
expect(buttonProtocolMock) | ||
.to | ||
.respondTo(@selector(setUserIdentifier:)); | ||
}); | ||
|
||
}); | ||
|
||
describe(@"reportEventWithName:properties:", ^{ | ||
|
||
it(@"is declared", ^{ | ||
expect(buttonProtocolMock) | ||
.to | ||
.respondTo(@selector(reportEventWithName:properties:)); | ||
}); | ||
|
||
}); | ||
|
||
describe(@"setDebugLoggingEnabled:", ^{ | ||
|
||
it(@"is declared", ^{ | ||
expect(buttonProtocolMock) | ||
.to | ||
.respondTo(@selector(setDebugLoggingEnabled:)); | ||
}); | ||
|
||
}); | ||
|
||
}); | ||
|
||
SpecEnd |
Oops, something went wrong.