Sha256: 6551073b656ab2904b79d803c3436c807d126f04fcd496e79ab9a63146b1a733

Contents?: true

Size: 612 Bytes

Versions: 2

Compression:

Stored size: 612 Bytes

Contents

require 'ronin/generators/payloads/payload'
require 'ronin/payloads/payload'

require 'spec_helper'
require 'generators/payloads/payload_examples'

require 'tmpdir'
require 'fileutils'

describe Generators::Payloads::Payload do
  before(:all) do
    @path = File.join(Dir.tmpdir,'generated_payload.rb')

    Generators::Payloads::Payload.generate(
      {},
      [@path]
    )

    @payload = Payloads::Payload.load_from(@path)
  end

  it_should_behave_like "a Payload"

  it "should define a Payload" do
    @payload.class.should == Payloads::Payload
  end

  after(:all) do
    FileUtils.rm(@path)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ronin-exploits-0.3.1 spec/generators/payloads/payload_spec.rb
ronin-exploits-0.3.0 spec/generators/payloads/payload_spec.rb