From 0d35ead5b4be7ac22e5f3e7e48a8e548b27dd935 Mon Sep 17 00:00:00 2001 From: Zach Malone Date: Wed, 4 Nov 2015 10:35:35 -0700 Subject: [PATCH] Fix should contain / should match confusion If attempting to use "contain" here, you get [UNSUPPORTED] `contain` matcher. Please use the following syntax `its('content') { should match('value') }`. it looks like this should say "should match". This may effect other resources, but I've only tried file. --- docs/resources.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/resources.rst b/docs/resources.rst index 2951d6d43..cd5e49de4 100644 --- a/docs/resources.rst +++ b/docs/resources.rst @@ -1067,7 +1067,7 @@ The ``content`` matcher tests if contents in the file match the value specified .. code-block:: ruby - its('content') { should contain 'value' } + its('content') { should match 'value' } The following complete example tests the ``pg_hba.conf`` file in |postgresql| for |md5| requirements. The tests look at all ``host`` and ``local`` settings in that file, and then compare the |md5| checksums against the values in the test: