I'm working around sinatra's lack of multi value parameters in the query string by parsing it directly. This works fine. However, I'm a bit stuck with how to test this using rack-test since rack/sinatra seem to be conspiring to defeat all my attempts to pass multiple values for the same parameter.
In my test I have something like
get "/?tag=foo&tag=bar"
the actual query string on the sinatra side is
tag=bar
So, it loses the first value. I've tried using a list in the params object as well
get "/?tag=foo&tag=bar", {"tag"=>["foo","bar"]}
this has the same result.
Is there a way to set the query string directly?
I'm using pretty much the latest of everything (as of yesterday): rack (1.5.2), rack-test (0.6.2), sinatra (1.3.6).
Jilles