Sha256: 8d869404d6b98dfb43f3a9f02b4796b9e1b459f3ca097fcd746a4c1937e0e69a
Contents?: true
Size: 705 Bytes
Versions: 1
Compression:
Stored size: 705 Bytes
Contents
require 'ronin/payloads/encoder' require 'spec_helper' describe Payloads::Encoder do before(:all) do @encoder = Payloads::Encoder.new(:name => 'test') @data = 'some data' end it "should require a name" do encoder = Payloads::Encoder.new encoder.should_not be_valid encoder = Payloads::Encoder.new(:name => 'encoder') encoder.should be_valid end it "should provide a #call method" do @encoder.respond_to?(:call).should == true end it "should return the data to be encoded by default" do @encoder.call(@data).should == @data end it "should have a custom inspect method" do @encoder.inspect.should == '#<Ronin::Payloads::Encoder: test>' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ronin-exploits-0.2.1 | spec/payloads/encoder_spec.rb |