Sha256: c6850df9aaaf8b252ac90a60a9fdad931b9c170a90638645c3a199ab25e73e17

Contents?: true

Size: 347 Bytes

Versions: 9

Compression:

Stored size: 347 Bytes

Contents

require 'spec_helper'

describe ShimoSoku do
  subject { @dl }
  let(:url) { 'http://blog.livedoor.jp/pramo/archives/51867686.html' }
  before do
    FileUtils.stub(:mkdir_p)
    @dl = ShimoSoku.new(url)
    fake(:get, url, 'shimo_soku/sample.html')
  end
  its(:sub_directory) { should == '51867686' }
  its("targets.count") { should == 32 }
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ero_getter-1.7.0 spec/downloader/shimo_soku_spec.rb
ero_getter-1.6.3 spec/downloader/shimo_soku_spec.rb
ero_getter-1.6.2 spec/downloader/shimo_soku_spec.rb
ero_getter-1.6.1 spec/downloader/shimo_soku_spec.rb
ero_getter-1.6.0 spec/downloader/shimo_soku_spec.rb
ero_getter-1.5.1 spec/downloader/shimo_soku_spec.rb
ero_getter-1.5.0 spec/downloader/shimo_soku_spec.rb
ero_getter-1.4.0 spec/downloader/shimo_soku_spec.rb
ero_getter-1.3.9 spec/downloader/shimo_soku_spec.rb