Sha256: 7558b030035aa024247d83490e92280fcc9584f38febb5da0839a11997880352

Contents?: true

Size: 1.08 KB

Versions: 11

Compression:

Stored size: 1.08 KB

Contents

require 'spec_helper'

describe name_from_filename do
    include_examples 'plugin'

    before( :all ) do
        options.url = url
        options.audit.elements :cookies, :links, :forms
    end

    def results
        yaml_load <<YAML
---
__URL__:
- class: Arachni::Element::Link
  type: :link
  url: __URL__
  inputs:
    link_input: blah
  action: __URL__link
  method: get
  source: <a href="/link?link_input=blah">A link</a>
- class: Arachni::Element::Form
  type: :form
  url: __URL__
  inputs:
    form-input: ''
  action: __URL__
  method: post
  source: |-
    <form method="post">
                <input name="form-input">
            </form>
- class: Arachni::Element::Cookie
  type: :cookie
  url: __URL__
  inputs:
    cookie1: val1
  action: __URL__
  method: get
  source: cookie1=val1; domain=127.0.0.2; path=/; HttpOnly
__URL__link?link_input=blah:
- class: Arachni::Element::Cookie
  type: :cookie
  url: __URL__
  inputs:
    cookie1: val1
  action: __URL__link?link_input=blah
  method: get
  source: cookie1=val1; domain=127.0.0.2; path=/; HttpOnly
YAML
    end

    easy_test
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
arachni-1.6.1.3 spec/components/plugins/vector_collector_spec.rb
arachni-1.6.1.2 spec/components/plugins/vector_collector_spec.rb
arachni-1.6.1.1 spec/components/plugins/vector_collector_spec.rb
arachni-1.6.1 spec/components/plugins/vector_collector_spec.rb
arachni-1.6.0 spec/components/plugins/vector_collector_spec.rb
arachni-1.5.1 spec/components/plugins/vector_collector_spec.rb
arachni-1.5 spec/components/plugins/vector_collector_spec.rb
arachni-1.4 spec/components/plugins/vector_collector_spec.rb
arachni-1.3.2 spec/components/plugins/vector_collector_spec.rb
arachni-1.3.1 spec/components/plugins/vector_collector_spec.rb
arachni-1.3 spec/components/plugins/vector_collector_spec.rb