Sha256: ff5266a4fb52f67c60b010710c7f4d56e343d0c4c77370067fe968754434e1b1

Contents?: true

Size: 570 Bytes

Versions: 1

Compression:

Stored size: 570 Bytes

Contents

require 'spec_helper'

module ArchiveLister
  describe WaybackFile do
    describe '.parse' do
      subject(:file) { WaybackFile.parse(File.read(content_filename('voa_wayback.html'))) }

      describe 'the URLs' do
        subject(:urls) { file.urls }

        it { should be_an(Array) }
        it { should have(866).urls }

        describe 'the first URL' do
          subject(:url) { urls.first }

          it         { should be_an(Addressable::URI) }
          its(:to_s) { should eql('http://www.voa.gov.uk/corporate') }
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
archive_lister-0.0.1 spec/archive_lister/wayback_file_spec.rb