Sha256: e060b837a7154cdce1d4a3b3f4ecee8e67b5609621157ed3fa3b4da31cd4cdf5

Contents?: true

Size: 538 Bytes

Versions: 6

Compression:

Stored size: 538 Bytes

Contents

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

shared_examples_for "Rubies Advisory" do |path|
  include_examples 'Advisory', path
  
  advisory = YAML.load_file(path)

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

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

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

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
bundler-leak-0.2.0 data/ruby-mem-advisory-db/spec/ruby_example.rb
bundler-leak-0.1.1 data/ruby-mem-advisory-db/spec/ruby_example.rb
bundler-leak-0.1.0 data/ruby-mem-advisory-db/spec/ruby_example.rb
bundler-leak-0.0.0 data/ruby-mem-advisory-db/spec/ruby_example.rb
bundler-budit-0.6.2 data/ruby-advisory-db/spec/ruby_example.rb
bundler-budit-0.6.1 data/ruby-advisory-db/spec/ruby_example.rb