Sha256: 4f86aa500911ed4e0467ac5bb8f991fa784c44a59fe94548c8a513a296d5152f

Contents?: true

Size: 454 Bytes

Versions: 3

Compression:

Stored size: 454 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
        issues.should be_any
    end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
arachni-1.2.1 spec/components/checks/passive/grep/x_frame_options_spec.rb
arachni-1.2 spec/components/checks/passive/grep/x_frame_options_spec.rb
arachni-1.1 spec/components/checks/passive/grep/x_frame_options_spec.rb