Sha256: 790429a5311a58ef0f61d18a073525f3038644da1bb7459c08f0713bafd43dda

Contents?: true

Size: 674 Bytes

Versions: 8

Compression:

Stored size: 674 Bytes

Contents

require 'spec_helper'

describe name_from_filename do
    include_examples 'path_extractor'

    def results
        [
            'http://test.com',
            'http://test.com/ /d',
            '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://test.com/ /d"'>
            <meta http-equiv="refResh" content='0;URL= http://test2.com '>
        HTML
    end

    easy_test
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
arachni-1.6.1.3 spec/components/path_extractors/meta_refresh_spec.rb
arachni-1.6.1.2 spec/components/path_extractors/meta_refresh_spec.rb
arachni-1.6.1.1 spec/components/path_extractors/meta_refresh_spec.rb
arachni-1.6.1 spec/components/path_extractors/meta_refresh_spec.rb
arachni-1.6.0 spec/components/path_extractors/meta_refresh_spec.rb
arachni-1.5.1 spec/components/path_extractors/meta_refresh_spec.rb
arachni-1.5 spec/components/path_extractors/meta_refresh_spec.rb
arachni-1.4 spec/components/path_extractors/meta_refresh_spec.rb