Sha256: 9427fcd3e80340623bc43270a5badc454872fac05b23515cabf5eeb92430abd4

Contents?: true

Size: 581 Bytes

Versions: 31

Compression:

Stored size: 581 Bytes

Contents

shared_examples_for 'Metasploit::Model::RealPathname' do
  context '#real_pathname' do
    subject(:real_pathname) do
      base_instance.real_pathname
    end

    before(:each) do
      base_instance.real_path = real_path
    end

    context 'with #real_path' do
      let(:real_path) do
        'real/path.rb'
      end

      it 'should be Pathname wrapping #real_path' do
        real_pathname.should == Pathname.new(real_path)
      end
    end

    context 'without #real_path' do
      let(:real_path) do
        nil
      end

      it { should be_nil }
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

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