diff options
| author | mo khan <mo.khan@gmail.com> | 2020-11-17 13:08:26 -0700 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-11-17 13:08:26 -0700 |
| commit | c4bfd320f0c12a926870dc0e9d28bb5488496998 (patch) | |
| tree | 179130efbf067360827488da3c0dfcfc9618dc49 /spec | |
| parent | 36eb1e259a05cbf8f492081edc13a2cf7043308d (diff) | |
test: ensure Description is complete
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/unit/os/parsers/dpkg_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/unit/os/parsers/dpkg_spec.rb b/spec/unit/os/parsers/dpkg_spec.rb index bfc5729..df63e35 100644 --- a/spec/unit/os/parsers/dpkg_spec.rb +++ b/spec/unit/os/parsers/dpkg_spec.rb @@ -94,6 +94,12 @@ RSpec.describe Spandx::Os::Parsers::Dpkg do specify { expect(subject).to include(build('tzdata', '2020a-0+deb10u1', path)) } specify { expect(subject).to include(build('util-linux', '2.33.1-0.1', path)) } specify { expect(subject).to include(build('zlib1g', '1:1.2.11.dfsg-1', path)) } + + specify do + mawk = subject.find { |x| x.name == 'mawk' } + + expect(mawk.meta['Description']).to end_with('limits such as NF = 32767 and sprintf buffer = 1020.') + end end describe '#match?' do |
