In my rails project I have a model with attribute foo. I have a vaildation which ensures that any value for foo is in an array. This uses a validation with the :in option.
I want to test this using rspec/shoulda. I think ensure_inclusion_of is supposed to test this validation but it only works on ranges and not an array. How can I make it work with an array or write my own matcher to do this?