Sha256: ecae3b5203017418f39256d97949f119a1c07a83c0900aaf9aeb64d89f1700f8

Contents?: true

Size: 492 Bytes

Versions: 31

Compression:

Stored size: 492 Bytes

Contents

require 'spec_helper'

describe Metasploit::Model::Reference do
  it_should_behave_like 'Metasploit::Model::Reference',
                        namespace_name: 'Dummy' do
    def attribute_type(attribute)
      type_by_attribute = {
          :designation => :string,
          :url => :text
      }

      type = type_by_attribute.fetch(attribute)

      type
    end

    def authority_with_abbreviation(abbreviation)
      Dummy::Authority.with_abbreviation(abbreviation)
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
metasploit-model-0.28.0 spec/lib/metasploit/model/reference_spec.rb
metasploit-model-0.28.0-java spec/lib/metasploit/model/reference_spec.rb
metasploit-model-0.28.0.pre.engine.pre.requires spec/lib/metasploit/model/reference_spec.rb
metasploit-model-0.27.4 spec/lib/metasploit/model/reference_spec.rb
metasploit-model-0.27.4-java spec/lib/metasploit/model/reference_spec.rb
metasploit-model-0.27.3 spec/lib/metasploit/model/reference_spec.rb
metasploit-model-0.27.3-java spec/lib/metasploit/model/reference_spec.rb
metasploit-model-0.27.2 spec/lib/metasploit/model/reference_spec.rb
metasploit-model-0.27.2-java spec/lib/metasploit/model/reference_spec.rb
metasploit-model-0.27.1 spec/lib/metasploit/model/reference_spec.rb
metasploit-model-0.27.1-java spec/lib/metasploit/model/reference_spec.rb
metasploit-model-0.27.0 spec/lib/metasploit/model/reference_spec.rb
metasploit-model-0.27.0-java spec/lib/metasploit/model/reference_spec.rb
metasploit-model-0.27.0.pre.dep.pre.railties spec/lib/metasploit/model/reference_spec.rb
metasploit-model-0.26.1-java spec/lib/metasploit/model/reference_spec.rb
metasploit-model-0.26.1 spec/lib/metasploit/model/reference_spec.rb
metasploit-model-0.25.7 spec/lib/metasploit/model/reference_spec.rb
metasploit-model-0.25.7-java spec/lib/metasploit/model/reference_spec.rb
metasploit-model-0.25.6 spec/lib/metasploit/model/reference_spec.rb
metasploit-model-0.25.6-java spec/lib/metasploit/model/reference_spec.rb