Skye Shaw

Results 204 comments of Skye Shaw

You can use the block form: ```ruby stub_request(:post, "http://example.com"). with(:headers => { "Content-Type" => %r|\Amultipart/form-data| }) { |request| request.body =~ /some-part-of-body/ } ``` Works for me under 2.3.2.

It only works because I'm using a regex and not trying to match an entire part, just contents. Boundary string is not relevant . (Maybe regex can be update to...

> You can use regexp to match body without a block. Webmock supports body to > be declared as regexp. Not for multipart/for-data (hence this issue). It results in: `ArgumentError:...

> What if you want to use `to_return`? ... > I get ` ArgumentError: invalid byte sequence in UTF-8` Likely has nothing to do with `to_return` but rather `request.body` is...

Would be good to add a link to [the demo directory](https://github.com/rubyworks/facets/tree/master/demo) too.

> Do you feel his pull request resolves this? I haven't tried it out but it's better than nuthin'. Some thoughts: 1. May be better to say `respond_to?(:call)` [instead of...

> Given Gyoku's interface -i.e., Many calls to Gyoku.xml, it would be nice if one could add converters to FORMULA. To clarify `FORMULA` is in `XMLKey`'s singleton class and can't...

Also, not sure if this was intentional but `%x('ls -al /')` should be `%x(ls -al /)` (no quotes).