-
-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
handleFindAll does not work and makeList works #111
Comments
Do you need to register the request (handleFindAll) before visiting the route? |
That is interesting .. is this test showing that the handleFindAll('skills', 2) is only making 1 skill .. that is highly irregular and suggests a fairly drunk test helper. I will keep the liquor off the shelves from now on, but wonder how I can recreate that .. or get more insight into that .. I'd be super curious to see that result |
or .. maybe the mockjax request is not being used .. hmm .. that might be my first guess. |
I found a part of the solution, I have another test :
When I remove this test, the first one works. The api is triggered with this path There is a weird behavior When I save the file, the api is called but when I rerun the test, it's not. The test is failing one time on two (for real). I think there is poltergeist in my acceptance test. I'm scared. Help me! |
Well @GCorbel, the poltergeist is always there when you forget to do 2 certain things. Look at my sample acceptance test and see if you can spot the things you are missing in setup and teardown. |
You've exorcised. Thanks! |
Hi,
I have this route :
And this test :
When I run it, I have this result :
It's the same result when I don't mock the http request. When I use
FactoryGuy.makeList('skill', 2);
, it works.Did I do something wrong?
The text was updated successfully, but these errors were encountered: