summaryrefslogtreecommitdiff
path: root/platform/ios/test/OHHTTPStubs/OHHTTPStubs/UnitTests/OHPathHelpersTests.m
blob: 98086feeb1b494c43b031dc5c5677f5fb6c03904 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#import <XCTest/XCTest.h>
#import "OHHTTPStubs.h"

@interface OHPathHelpersTests : XCTestCase

@end

@implementation OHPathHelpersTests

- (void)testOHResourceBundle {
    NSBundle *classBundle = [NSBundle bundleForClass:self.class];
    NSBundle *expectedBundle = [NSBundle bundleWithPath:[classBundle pathForResource:@"empty"
                                                                              ofType:@"bundle"]];
    
    XCTAssertEqual(OHResourceBundle(@"empty", self.class), expectedBundle);
}

@end