Sha256: 37b8ce314422dd52c5f532821eea8c26c7f1688d5576c88d90f8ba38e9d1c00b
Contents?: true
Size: 656 Bytes
Versions: 2
Compression:
Stored size: 656 Bytes
Contents
require 'ronin/generators/payloads/binary_payload' require 'ronin/payloads/binary_payload' require 'spec_helper' require 'generators/payloads/payload_examples' require 'tmpdir' require 'fileutils' describe Generators::Payloads::BinaryPayload do before(:all) do @path = File.join(Dir.tmpdir,'generated_payload.rb') Generators::Payloads::BinaryPayload.generate( {}, [@path] ) @payload = Payloads::BinaryPayload.load_from(@path) end it_should_behave_like "a Payload" it "should define a BinaryPayload" do @payload.class.should == Payloads::BinaryPayload 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/binary_payload_spec.rb |
ronin-exploits-0.3.0 | spec/generators/payloads/binary_payload_spec.rb |