diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/quality_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/quality_spec.rb b/spec/quality_spec.rb index 8fccdbba..ce03839c 100644 --- a/spec/quality_spec.rb +++ b/spec/quality_spec.rb @@ -110,6 +110,19 @@ describe "The library itself" do expect(error_messages.compact).to be_well_formed end + it "maintains language quality of sentences used in source code" do + error_messages = [] + exempt = /vendor/ + Dir.chdir(File.expand_path("../../lib", __FILE__)) do + `git ls-files -z`.split("\x0").each do |filename| + next if filename =~ exempt + error_messages << check_for_expendable_words(filename) + error_messages << check_for_specific_pronouns(filename) + end + end + expect(error_messages.compact).to be_well_formed + end + it "can still be built" do Dir.chdir(root) do `gem build bundler.gemspec` |