This matcher is to facilitate writing specs that write data to a file. The file is opened with the 'binary' encoding if the :encoding feature is enabled. The 'data' string passed to the matcher is expected to have 'binary' ('ascii-8bit') encoding as well.
… yields the receiver.
…ond_to?(:to_int) generates an error
… Unix. Signed-off-by: Brian Ford <email@example.com>