Sha256: af7e1d5ae261f5727854766336a5cb0fa98e0f1ce23d9bc85756aafae7d93ea0

Contents?: true

Size: 462 Bytes

Versions: 6

Compression:

Stored size: 462 Bytes

Contents

require 'spec_helper'

describe name_from_filename do
    include_examples 'check'

    def self.elements
        [ Element::Server ]
    end

    def issue_count
        1
    end

    it 'logs hosts missing the header' do
        options.url = "#{url}/vulnerable"
        run
        expect(issues).to be_any
    end

    it 'does not log hosts with the header' do
        options.url = "#{url}/safe"
        run
        expect(issues).to be_empty
    end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
arachni-1.5.1 spec/components/checks/passive/grep/x_frame_options_spec.rb
arachni-1.5 spec/components/checks/passive/grep/x_frame_options_spec.rb
arachni-1.4 spec/components/checks/passive/grep/x_frame_options_spec.rb
arachni-1.3.2 spec/components/checks/passive/grep/x_frame_options_spec.rb
arachni-1.3.1 spec/components/checks/passive/grep/x_frame_options_spec.rb
arachni-1.3 spec/components/checks/passive/grep/x_frame_options_spec.rb