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