As mentioned from @slippman the regex matcher also works for single attributes. So if you expect an object it can look like the following:
File.should_receive(:read.with({ foo: 'bar', other: /anybar/ }).and_return ""