Sha256: 5b1d1b7c0fc2d188c486b6487135106964a3dc82dd3f8c230e54ccdfd5122e72

Contents?: true

Size: 449 Bytes

Versions: 3

Compression:

Stored size: 449 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 'logs hosts missing 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/hsts_spec.rb
arachni-1.2 spec/components/checks/passive/grep/hsts_spec.rb
arachni-1.1 spec/components/checks/passive/grep/hsts_spec.rb