Sha256: 469cde71e47e00334e70b1a446905b120fbec87eab76f8f554752f83cc3e61c7

Contents?: true

Size: 639 Bytes

Versions: 3

Compression:

Stored size: 639 Bytes

Contents

require 'spec_helper'

describe PmStyle do
  let(:url) { 'http://mxserver08.net/new_pm/main/movie13716.html' }
  subject { @dl }
  before do
    FileUtils.stub(:mkdir_p)
    fake(:get, url, 'pm_style/test.html')
    @dl = PmStyle.new(url)
  end
  its(:base_dir) { should == 'pm_style' }
  its(:targets) { should == [
      'http://hpcgi2.nifty.com/r-seven/page.cgi?file=copy2/pm/130206/pm_chu3056a.zip',
      'http://hpcgi2.nifty.com/r-seven/page.cgi?file=copy2/pm/130206/pm_chu3056c.zip',
      'http://hpcgi2.nifty.com/r-seven/page.cgi?file=copy2/pm/130206/pm_chu3056b.zip']
  }
  its(:sub_directory) { should == 'pm_chu_003056' }
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ero_getter-1.7.0 spec/downloader/pm_style_spec.rb
ero_getter-1.6.3 spec/downloader/pm_style_spec.rb
ero_getter-1.6.2 spec/downloader/pm_style_spec.rb