Sha256: 2f91f80f8142862e4a9a85243e83394fdbd654a3f1aa4b8e2fc287ff162f4ed7

Contents?: true

Size: 542 Bytes

Versions: 10

Compression:

Stored size: 542 Bytes

Contents

load File.join(File.dirname(__FILE__), 'spec_helper.rb')
require 'advisory_example'

shared_examples_for "Libraries Advisory" do |path|
  include_examples 'Advisory', path

  advisory = YAML.load_file(path)

  describe path do
    let(:library) { File.basename(File.dirname(path)) }

    describe "library" do
      subject { advisory['library'] }

      it { is_expected.to be_kind_of(String) }
      it "should be equal to filename (case-insensitive)" do
        expect(subject.downcase).to eq(library.downcase)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
bundler-audit-0.7.0.1 data/ruby-advisory-db/spec/library_example.rb
bundler-leak-0.2.0 data/ruby-mem-advisory-db/spec/library_example.rb
bundler-leak-0.1.1 data/ruby-mem-advisory-db/spec/library_example.rb
bundler-leak-0.1.0 data/ruby-mem-advisory-db/spec/library_example.rb
bundler-leak-0.0.0 data/ruby-mem-advisory-db/spec/library_example.rb
bundler-budit-0.6.2 data/ruby-advisory-db/spec/library_example.rb
bundler-budit-0.6.1 data/ruby-advisory-db/spec/library_example.rb
bundler-audit-0.6.1 data/ruby-advisory-db/spec/library_example.rb
bundler-audit-0.6.0 data/ruby-advisory-db/spec/library_example.rb
bundler-audit-0.5.0 data/ruby-advisory-db/spec/library_example.rb