Sha256: 4cb5dfccf9987b915051c8f372648ae88423e05eab7a4d48d6f4b52bb9e315b1

Contents?: true

Size: 726 Bytes

Versions: 18

Compression:

Stored size: 726 Bytes

Contents

require 'spec_helper'

describe Metasploit::Model::Configured do
  subject(:configured) do
    Module.new.tap { |m|
      m.extend described_class
    }
  end

  context 'configuration' do
    subject(:configuration) do
      configured.configuration
    end

    it { should be_a Metasploit::Model::Configuration }
  end

  context 'root' do
    subject(:root) do
      configured.root
    end

    it 'should delegate to configuration' do
      configured.configuration.should_receive(:root)

      root
    end
  end

  context 'setup' do
    subject(:setup) do
      configured.setup
    end

    it 'should delegate to configuration' do
      configured.configuration.should_receive(:setup)

      setup
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
metasploit-model-0.27.0.pre.dep.pre.railties spec/lib/metasploit/model/configured_spec.rb
metasploit-model-0.26.1-java spec/lib/metasploit/model/configured_spec.rb
metasploit-model-0.26.1 spec/lib/metasploit/model/configured_spec.rb
metasploit-model-0.25.7 spec/lib/metasploit/model/configured_spec.rb
metasploit-model-0.25.7-java spec/lib/metasploit/model/configured_spec.rb
metasploit-model-0.25.6 spec/lib/metasploit/model/configured_spec.rb
metasploit-model-0.25.6-java spec/lib/metasploit/model/configured_spec.rb
metasploit-model-0.25.3 spec/lib/metasploit/model/configured_spec.rb
metasploit-model-0.25.3-java spec/lib/metasploit/model/configured_spec.rb
metasploit-model-0.25.2 spec/lib/metasploit/model/configured_spec.rb
metasploit-model-0.25.2-java spec/lib/metasploit/model/configured_spec.rb
metasploit-model-0.25.1 spec/lib/metasploit/model/configured_spec.rb
metasploit-model-0.25.1-java spec/lib/metasploit/model/configured_spec.rb
metasploit-model-0.25.1.pre.metasploit.pre.model.pre.search.pre.operator.pre.and.pre.operation.pre.groups-java spec/lib/metasploit/model/configured_spec.rb
metasploit-model-0.25.1.pre.metasploit.pre.model.pre.search.pre.operator.pre.and.pre.operation.pre.groups spec/lib/metasploit/model/configured_spec.rb
metasploit-model-0.24.1-java spec/lib/metasploit/model/configured_spec.rb
metasploit-model-0.24.1 spec/lib/metasploit/model/configured_spec.rb
metasploit-model-0.24.1.pre.semantic.pre.versioning.pre.2.pre.0 spec/lib/metasploit/model/configured_spec.rb