Closed volmer closed 11 years ago
Hi, great.
1/ Can you rewrite the unit test without the tap
method? I understand we pull in the ActiveSupport etc, but let's keep unit tests 1.8 friendly.
2/ Can you add a realistic integration test, potentially using your example in the pull request description?
Thanks for the response, @karmi.
Ok, I've removed the tap
method from the unit test. Could you please instruct me about where the integration tests for the custom filter score are located? I didn't find them.
Yes, the other queries have just unit tests, I think it's fine to add an example integration test into a separate Should context
in the test...
As suggested, I've added a more realistic test (same as the example above) in a separate context.
Any chance you can merge this in soon, @karmi? I found myself needing this feature so had to integrate this branch into my project.
Hey, sorry, retouched, merged, pushed!
@volmer I've removed the integration test in the end, since I haven't felt it makes it much clear what's going on :), and added just a simple assert that the param is added to the JSON.
@karmi thanks for merging in!
Just added support to use
params
withcustom_filters_score
. Params are often necessary when creating more complex score scripts. For example:Thanks to @thor27 and Jon Tai's blog post.