I have a shared rspec example for a number of functions (rest requests). Each function receives a hash which I want to check, but they can be at different positions, e.g.:

```
get(url, payload, headers)
delete(url, headers)

```

I want to write the following test:

```
shared_examples_for "any request" do
  describe "sets user agent" do
    it "defaults to some value" do
        rest_client.should_receive(action).with(????)
        run_request
      end
      it "to value passed to constructor"
    end
  end
end

describe "#create" do
  let(:action) {:post}
  let (:run_action) {rest_client.post(url, payload, hash_i_care_about)}
  it_behaves_like "any request"
end

```

The question is, how can I write a matcher which matches any of the arguments, e.g.:

```
client.should_receive(action).with(arguments_including(hash_including(:user_agent => "my_agent")))

```