Sha256: 8705a4defa106ea5aee0b8e36c16feb561275b2ce51adb0710900eddb164b0b5

Contents?: true

Size: 737 Bytes

Versions: 31

Compression:

Stored size: 737 Bytes

Contents

shared_examples_for 'Metasploit::Model::Architecture seed' do |attributes={}|
  attributes.assert_valid_keys(:abbreviation, :bits, :endianness, :family, :summary)

  context_abbreviation = attributes.fetch(:abbreviation)

  context "with #{context_abbreviation}" do
    subject do
      seed
    end

    # put in a let so that `let(:seed)` has access to abbreviation.
    let(:abbreviation) do
      context_abbreviation
    end

    it 'should exist' do
      seed.should_not be_nil
    end

    its(:bits) { should == attributes.fetch(:bits) }
    its(:endianness) { should == attributes.fetch(:endianness) }
    its(:family) { should == attributes.fetch(:family) }
    its(:summary) { should == attributes.fetch(:summary) }
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
metasploit-model-0.28.0 spec/support/shared/examples/metasploit/model/architecture/seed.rb
metasploit-model-0.28.0-java spec/support/shared/examples/metasploit/model/architecture/seed.rb
metasploit-model-0.28.0.pre.engine.pre.requires spec/support/shared/examples/metasploit/model/architecture/seed.rb
metasploit-model-0.27.4 spec/support/shared/examples/metasploit/model/architecture/seed.rb
metasploit-model-0.27.4-java spec/support/shared/examples/metasploit/model/architecture/seed.rb
metasploit-model-0.27.3 spec/support/shared/examples/metasploit/model/architecture/seed.rb
metasploit-model-0.27.3-java spec/support/shared/examples/metasploit/model/architecture/seed.rb
metasploit-model-0.27.2 spec/support/shared/examples/metasploit/model/architecture/seed.rb
metasploit-model-0.27.2-java spec/support/shared/examples/metasploit/model/architecture/seed.rb
metasploit-model-0.27.1 spec/support/shared/examples/metasploit/model/architecture/seed.rb
metasploit-model-0.27.1-java spec/support/shared/examples/metasploit/model/architecture/seed.rb
metasploit-model-0.27.0 spec/support/shared/examples/metasploit/model/architecture/seed.rb
metasploit-model-0.27.0-java spec/support/shared/examples/metasploit/model/architecture/seed.rb
metasploit-model-0.27.0.pre.dep.pre.railties spec/support/shared/examples/metasploit/model/architecture/seed.rb
metasploit-model-0.26.1-java spec/support/shared/examples/metasploit/model/architecture/seed.rb
metasploit-model-0.26.1 spec/support/shared/examples/metasploit/model/architecture/seed.rb
metasploit-model-0.25.7 spec/support/shared/examples/metasploit/model/architecture/seed.rb
metasploit-model-0.25.7-java spec/support/shared/examples/metasploit/model/architecture/seed.rb
metasploit-model-0.25.6 spec/support/shared/examples/metasploit/model/architecture/seed.rb
metasploit-model-0.25.6-java spec/support/shared/examples/metasploit/model/architecture/seed.rb