From: Alex Harvey Date: Sun, 11 Jun 2017 12:47:18 +0000 (+1000) Subject: Add test for README X-Git-Tag: 1.10.0~30^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=95f56586a6506ce4c0460106483a7982fbaf4e05;p=puppet-modules%2Fpuppetlabs-firewall.git Add test for README This adds an Rspec test to fail the build if someone adds incorrectly formatted heading markers again. --- diff --git a/spec/unit/documentation/readme_spec.rb b/spec/unit/documentation/readme_spec.rb new file mode 100644 index 0000000..d821bb2 --- /dev/null +++ b/spec/unit/documentation/readme_spec.rb @@ -0,0 +1,6 @@ +describe 'formatting in README.markdown' do + it 'should not contain badly formatted heading markers' do + content = File.read('README.markdown') + expect(content).to_not match /^#+[^# ]/ + end +end