Hamcrest for Objective-C: Powerful, combinable, extensible matchers for verification
Questions tagged [ochamcrest]
18 questions
0
votes
1 answer
not found after pod install
In my podspec for my project, I have :
s.dependency 'OCHamcrest'
I keep on getting the above error. In Pods/Headers, I noticed the following path :
Pods/Headers/Public/OCHamcrest/OCHamcrest.h
Also, there is nothing in my HEADER SEARCH PATHS. Has…

gran_profaci
- 8,087
- 15
- 66
- 99
0
votes
1 answer
Comparing [class] does not work?
I have a unit test:
- (void)testFetchTrackByTrackIdIsATrack
{
[self addTrackWithSongId:@"123"];
Track *fetchedTrack = [self.library trackByTrackId:@"123"];
assertThat(fetchedTrack, instanceOf([Track class]));
}
Which fails…

Elliot Chance
- 5,526
- 10
- 49
- 80
0
votes
1 answer
Testing the parameters send to a Mock Protocol with OCMockito
Good day,
I'm using OCHamcrest and OCMockito to start my path using TDD methodology, they really cool tools but there's one thing that it seems that I don't understand about mocking a protocol and try to evaluate a parameter.
Considering the example…

xlarsx
- 981
- 1
- 9
- 8