Filters | Avo docs
# avo-2
f
@lemon-wall-20836 Hi how are you i hope you are doing well I add filter in my resource and according to that filter i want to generate the request spec here is the article that i followed from the official DOC of avo https://docs.avohq.io/2.0/filters.html#dynamic-filter-options
l
> i want to generate the request spec
understand you want to test that filter in a spec in your app, right?
the filter params are base64 encoded
you can use
Avo::Filters::BaseFilter.encode_filters
to pass the params
we have it documented here
let me know if I didn't understand something
f
alright let me check Thanks
Hi @lemon-wall-20836 when i use **Avo::Filters::BaseFilter.encode_filters **for filter params i have error that is undefined method `encode_filters' for Filter:Class should i import something in my spec file for encode method
l
no. what version of Avo are you on?
where are you trying to use it? in a spec? can you share the code please?
f
yes i am using in spec file
gem 'avo', '~> 2.28.3
l
please try to upgrade to a more recent version
I can't remember when we added it, but it was more recent
f
alright let me try Thanks
l
we added it a month ago