File: shared_examples_4_0_and_later.rb

package info (click to toggle)
ruby-cvss-suite 4.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,612 kB
  • sloc: ruby: 2,829; makefile: 4; sh: 3
file content (12 lines) | stat: -rw-r--r-- 486 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
# CVSS-Suite, a Ruby gem to manage the CVSS vector
#
# This work is licensed under the terms of the MIT license.
# See the LICENSE.md file in the top-level directory.

shared_examples 'a valid 4.0 cvss vector' do |version, overall_score, severity|
  it { is_expected.to be_valid }
  its(:valid?) { is_expected.to be(true) }
  its(:version) { is_expected.to eql(version) }
  its(:overall_score) { is_expected.to eql(overall_score) }
  its(:severity) { is_expected.to eql(severity) }
end