Sha256: 1e7f86629432880d627ebd39e1686e2c9f8f04dd720ae75120b1acbca04e8d5a

Contents?: true

Size: 853 Bytes

Versions: 7

Compression:

Stored size: 853 Bytes

Contents

require 'spec_helper'

describe name_from_filename do
    include_examples 'plugin'

    before( :all ) do
        options.url = url
    end

    it 'logs the expected results' do
        run

        results = results_for( name_from_filename )

        results.size.should == 3

        oks = 0
        results.each do |result|
            if (result[:res]['effective_url'] == url &&
                result[:cookies] == { 'cookie1' => 'val1' }) ||
                (result[:res]['effective_url'] == url + 'a_link' &&
                result[:cookies] == { 'link_followed' => 'yay link!' }) ||
                (result[:res]['effective_url'] == url + 'update_cookie' &&
                result[:cookies] == { 'link_followed' => 'updated link!', 'stuff' => 'blah' })
                oks += 1
            end

        end

        oks.should == 3
    end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
arachni-0.4.5.2 spec/plugins/cookie_collector_spec.rb
arachni-0.4.5.1 spec/plugins/cookie_collector_spec.rb
arachni-0.4.5 spec/plugins/cookie_collector_spec.rb
arachni-0.4.4 spec/plugins/cookie_collector_spec.rb
arachni-0.4.3.2 spec/plugins/cookie_collector_spec.rb
arachni-0.4.3.1 spec/plugins/cookie_collector_spec.rb
arachni-0.4.3 spec/plugins/cookie_collector_spec.rb