Sha256: 174afe83c3e28aecbbb7ac0d25f7b7f82c280e1754814ca9f00a2b2f9d7189b8

Contents?: true

Size: 939 Bytes

Versions: 11

Compression:

Stored size: 939 Bytes

Contents

require 'spec_helper'

describe name_from_filename do
    include_examples 'plugin'

    before( :all ) do
        options.url = web_server_url_for(:framework)

        @uniformals = [[],[]]
        10.times do |i|
            @uniformals[0] << Factory[:active_issue].
                tap { |issue| issue.vector.action += i.to_s }

            @uniformals[1] << Factory[:active_issue].
                tap { |issue| issue.vector.method = :stuff; issue.vector.action += i.to_s }
        end

        issue = Factory[:active_issue].tap { |issue| issue.vector.method = :stuff2 }

        (@uniformals.flatten | [issue]).each { |i| Arachni::Data.issues << i }
    end

    it 'logs digests of issues which affect similar parameters across multiple pages' do
        run

        expect(actual_results[0].sort).to eq(@uniformals[1].map(&:digest).sort)
        expect(actual_results[1].sort).to eq(@uniformals[0].map(&:digest).sort)
    end
end

Version data entries

11 entries across 11 versions & 1 rubygems

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