From 95f56586a6506ce4c0460106483a7982fbaf4e05 Mon Sep 17 00:00:00 2001 From: Alex Harvey Date: Sun, 11 Jun 2017 22:47:18 +1000 Subject: [PATCH] Add test for README This adds an Rspec test to fail the build if someone adds incorrectly formatted heading markers again. --- spec/unit/documentation/readme_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 spec/unit/documentation/readme_spec.rb 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 -- 2.45.2