Sha256: 223ff4631f07a642fdbcce1e46a603af8bc66ad0c2827b2baa38fd95883780ac
Contents?: true
Size: 539 Bytes
Versions: 3
Compression:
Stored size: 539 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
3 entries across 3 versions & 1 rubygems