Sha256: aad47fc564634a9157624d38949fb5e9d09c4ff05be6bec72b2eb5b5cc6b1bed

Contents?: true

Size: 696 Bytes

Versions: 2

Compression:

Stored size: 696 Bytes

Contents

require 'spec_helper'

shared_examples_for "an Exploit" do
  it "should set the name property" do
    @exploit.name.should == Generators::Exploits::Exploit::DEFAULT_NAME
  end

  it "should set the description property" do
    @exploit.description.should == Generators::Exploits::Exploit::DEFAULT_DESCRIPTION
  end

  it "should set the status property" do
    @exploit.status.should == Generators::Exploits::Exploit::DEFAULT_STATUS
  end

  it "should set the disclosure property" do
    @exploit.disclosure.include?(:in_wild).should == true
  end

  it "should defines an author" do
    @exploit.authors.length.should == 1
    @exploit.authors.first.name.should == Author::ANONYMOUSE
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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