Sha256: 27bb57a2bced8c575635423f08b27a09d1c9e023fb788e64d64aad1487bef671

Contents?: true

Size: 503 Bytes

Versions: 31

Compression:

Stored size: 503 Bytes

Contents

require 'spec_helper'

describe Metasploit::Model::Spec::Template do
  context 'root' do
    around(:each) do |example|
      old_root = described_class.root

      begin
        example.run
      ensure
        described_class.root = old_root
      end
    end

    it 'modifies subclass root when set' do
      expected = double('root')

      expect {
        described_class.root = expected
      }.to change(Metasploit::Model::Module::Ancestor::Spec::Template, :root).to(expected)
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
metasploit-model-0.25.3 spec/app/models/metasploit/model/spec/template_spec.rb
metasploit-model-0.25.3-java spec/app/models/metasploit/model/spec/template_spec.rb
metasploit-model-0.25.2 spec/app/models/metasploit/model/spec/template_spec.rb
metasploit-model-0.25.2-java spec/app/models/metasploit/model/spec/template_spec.rb
metasploit-model-0.25.1 spec/app/models/metasploit/model/spec/template_spec.rb
metasploit-model-0.25.1-java spec/app/models/metasploit/model/spec/template_spec.rb
metasploit-model-0.25.1.pre.metasploit.pre.model.pre.search.pre.operator.pre.and.pre.operation.pre.groups-java spec/app/models/metasploit/model/spec/template_spec.rb
metasploit-model-0.25.1.pre.metasploit.pre.model.pre.search.pre.operator.pre.and.pre.operation.pre.groups spec/app/models/metasploit/model/spec/template_spec.rb
metasploit-model-0.24.1-java spec/app/models/metasploit/model/spec/template_spec.rb
metasploit-model-0.24.1 spec/app/models/metasploit/model/spec/template_spec.rb
metasploit-model-0.24.1.pre.semantic.pre.versioning.pre.2.pre.0 spec/app/models/metasploit/model/spec/template_spec.rb