Sha256: 06ee731d34a205d57f6df8e3c6914f45127b3bb34fb6eb9775904424e92fdff3

Contents?: true

Size: 559 Bytes

Versions: 3

Compression:

Stored size: 559 Bytes

Contents

require 'spec_helper'
require 'ronin/fuzzing/fuzzing'

describe Fuzzing do
  describe "[]" do
    let(:method) { :bad_strings }

    it "should return Enumerators for fuzzing methods" do
      subject[method].should be_kind_of(Enumerable)
    end

    it "should raise NoMethodError for unknown methods" do
      lambda {
        subject[:foo]
      }.should raise_error(NoMethodError)
    end

    it "should not allow accessing inherited methods" do
      lambda {
        subject[:instance_eval]
      }.should raise_error(NoMethodError)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ronin-support-0.5.1 spec/fuzzing/fuzzing_spec.rb
ronin-support-0.5.0 spec/fuzzing/fuzzing_spec.rb
ronin-support-0.5.0.rc2 spec/fuzzing/fuzzing_spec.rb