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