FIX: file(hba_config_file) test in documentation, it is not working and rubocop detect some issues

Signed-off-by: Patrick Münch <patrick.muench1111@gmail.com>
This commit is contained in:
Patrick Münch 2016-07-14 13:06:41 +02:00
parent 174bbe89fb
commit 216a6aeac1

View file

@ -1239,9 +1239,9 @@ The following complete example tests the ``pg_hba.conf`` file in |postgresql| fo
.. code-block:: bash
describe file(hba_config_file) do
its('content') { should match /local\s.*?all\s.*?all\s.*?md5/ }
its('content') { should match %r{/host\s.*?all\s.*?all\s.*?127.0.0.1\/32\s.*?md5/} }
its('content') { should match %r{/host\s.*?all\s.*?all\s.*?::1\/128\s.*?md5/} }
its('content') { should match(%r{local\s.*?all\s.*?all\s.*?md5}) }
its('content') { should match(%r{host\s.*?all\s.*?all\s.*?127.0.0.1\/32\s.*?md5}) }
its('content') { should match(%r{host\s.*?all\s.*?all\s.*?::1\/128\s.*?md5}) }
end
exist