Skip to content

Commit fa9859e

Browse files
author
Button Bot
committed
update public api tests
1 parent cf727fe commit fa9859e

File tree

4 files changed

+23
-2
lines changed

4 files changed

+23
-2
lines changed

Tests/APIComparison/public-api-reference

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
- attributes
8080
+ sharedButton
8181
- configureWithApplicationId:completion:
82+
- configureWithApplicationId:userId:completion:
8283
- setDeferredDeeplinkHandler:
8384
- willDisplayButtonWithId:context:completion:
8485
- fetchAppActionWithButtonId:context:completion:

Tests/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PODS:
2-
- Button (4.5.0)
2+
- Button (4.9.0)
33
- Expecta (1.0.5)
44
- OCMock (3.3)
55
- Specta (1.0.5)
@@ -15,7 +15,7 @@ EXTERNAL SOURCES:
1515
:path: ..
1616

1717
SPEC CHECKSUMS:
18-
Button: e1a396db2f1864d94a86939e98156b227f1c9f29
18+
Button: fa782e625202a15e46a3ca54a2f612698bcb5018
1919
Expecta: e1c022fcd33910b6be89c291d2775b3fe27a89fe
2020
OCMock: d68685bde31f69cb61d518dcb39269080c78b5ed
2121
Specta: ac94d110b865115fe60ff2c6d7281053c6f8e8a2

Tests/PublicAPITests/Button_PublicAPISpec.m

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,21 @@
5151

5252
});
5353

54+
describe(@"configureWithApplicationId:userId:completion:", ^{
55+
56+
it(@"is a valid selector", ^{
57+
expect([Button instancesRespondToSelector:@selector(configureWithApplicationId:userId:completion:)])
58+
.to
59+
.beTruthy();
60+
});
61+
62+
it(@"takes the expected argument types", ^{
63+
[mockedButton configureWithApplicationId:@"application-id" userId:@"user-id"
64+
completion:^(NSError *error, NSURL *targetURL) { }];
65+
});
66+
67+
});
68+
5469
describe(@"setDeferredDeeplinkHandler:", ^{
5570

5671
it(@"is a valid selector", ^{
@@ -60,7 +75,10 @@
6075
});
6176

6277
it(@"takes the expected argument types", ^{
78+
#pragma clang diagnostic push
79+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
6380
[mockedButton setDeferredDeeplinkHandler:^(NSURL *deferredDeeplinkURL) {}];
81+
#pragma clang diagnostic pop
6482
});
6583

6684
});

Tests/Tests.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,7 @@
620620
buildSettings = {
621621
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
622622
INFOPLIST_FILE = Tests/Info.plist;
623+
IPHONEOS_DEPLOYMENT_TARGET = 8.2;
623624
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
624625
PRODUCT_BUNDLE_IDENTIFIER = Button.Tests;
625626
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -631,6 +632,7 @@
631632
buildSettings = {
632633
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
633634
INFOPLIST_FILE = Tests/Info.plist;
635+
IPHONEOS_DEPLOYMENT_TARGET = 8.2;
634636
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
635637
PRODUCT_BUNDLE_IDENTIFIER = Button.Tests;
636638
PRODUCT_NAME = "$(TARGET_NAME)";

0 commit comments

Comments
 (0)