Skip to content

Commit

Permalink
fix macOS availability for new test
Browse files Browse the repository at this point in the history
  • Loading branch information
bamx23 committed Jan 10, 2020
1 parent af4fcff commit 75cc4e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/KWRealObjectStubTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ - (void)testItShouldStubWithBlock {
- (void)testStubSecureCodingOfDateClass {
NSDate *date = [NSDate date];
[NSDate stub:@selector(date) andReturn:date];
if (@available(iOS 11.0, *)) {
if (@available(macOS 10.13, iOS 11.0, watchOS 4.0, tvOS 11.0, *)) {
NSData *data = [NSKeyedArchiver archivedDataWithRootObject:date requiringSecureCoding:YES error:NULL];
XCTAssertNotNil(data, @"expected stubbed class to be able to use secure coding");
}
Expand Down

0 comments on commit 75cc4e6

Please sign in to comment.