Sha256: cd46b4626c8275fcf837dbe5d6a5fce202e387b74ce35ca1b6a1b2a017f47cf1

Contents?: true

Size: 559 Bytes

Versions: 4

Compression:

Stored size: 559 Bytes

Contents

require 'spec_helper'

describe name_from_filename do
    include_examples 'path_extractor'

    def results
        [
            'http://test.com',
            'test.com',
            'http://test2.com'
        ]
    end

    def text
        <<-HTML
            <meta http-equiv="refresh" content="5">
            <meta http-equiv="refresh" content="5;URL='test.com'">
            <meta http-equiv="refresh" content='0;URL="http://test.com"'>
            <meta http-equiv="refresh" content='0;URL=http://test2.com'>
        HTML
    end

    easy_test
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
arachni-0.4.4 spec/path_extractors/meta_refresh_spec.rb
arachni-0.4.3.2 spec/path_extractors/meta_refresh_spec.rb
arachni-0.4.3.1 spec/path_extractors/meta_refresh_spec.rb
arachni-0.4.3 spec/path_extractors/meta_refresh_spec.rb