Sha256: 26590fd241a35dd97fc2acaf1f8d1208ea118600cc3c017827e1f52a0264ae98
Contents?: true
Size: 568 Bytes
Versions: 1
Compression:
Stored size: 568 Bytes
Contents
require 'ronin/payloads/encoder' require 'spec_helper' describe Payloads::Encoder do before(:all) do @encoder = Payloads::Encoder.new @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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ronin-exploits-0.2.0 | spec/payloads/encoder_spec.rb |