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.28.0 spec/app/models/metasploit/model/spec/template_spec.rb
metasploit-model-0.28.0-java spec/app/models/metasploit/model/spec/template_spec.rb
metasploit-model-0.28.0.pre.engine.pre.requires spec/app/models/metasploit/model/spec/template_spec.rb
metasploit-model-0.27.4 spec/app/models/metasploit/model/spec/template_spec.rb
metasploit-model-0.27.4-java spec/app/models/metasploit/model/spec/template_spec.rb
metasploit-model-0.27.3 spec/app/models/metasploit/model/spec/template_spec.rb
metasploit-model-0.27.3-java spec/app/models/metasploit/model/spec/template_spec.rb
metasploit-model-0.27.2 spec/app/models/metasploit/model/spec/template_spec.rb
metasploit-model-0.27.2-java spec/app/models/metasploit/model/spec/template_spec.rb
metasploit-model-0.27.1 spec/app/models/metasploit/model/spec/template_spec.rb
metasploit-model-0.27.1-java spec/app/models/metasploit/model/spec/template_spec.rb
metasploit-model-0.27.0 spec/app/models/metasploit/model/spec/template_spec.rb
metasploit-model-0.27.0-java spec/app/models/metasploit/model/spec/template_spec.rb
metasploit-model-0.27.0.pre.dep.pre.railties spec/app/models/metasploit/model/spec/template_spec.rb
metasploit-model-0.26.1-java spec/app/models/metasploit/model/spec/template_spec.rb
metasploit-model-0.26.1 spec/app/models/metasploit/model/spec/template_spec.rb
metasploit-model-0.25.7 spec/app/models/metasploit/model/spec/template_spec.rb
metasploit-model-0.25.7-java spec/app/models/metasploit/model/spec/template_spec.rb
metasploit-model-0.25.6 spec/app/models/metasploit/model/spec/template_spec.rb
metasploit-model-0.25.6-java spec/app/models/metasploit/model/spec/template_spec.rb