Sha256: c2210931edb1f08143f9546d9c5b54aee97080bc4fa3538b3bfbd87a6627cdf1

Contents?: true

Size: 603 Bytes

Versions: 7

Compression:

Stored size: 603 Bytes

Contents

# -*- coding: utf-8 -*-
require 'spec_helper'

describe OkkiChannel do
  let(:url) { 'http://moegazo.info/archives/18023383.html' }
  subject { @dl }

  before do
    FileUtils.stub(:mkdir_p)
    @dl = OkkiChannel.new(url)
    fake(:get, url, 'okki_channel/sample.html')
  end
  its(:name) { should == 'おっきちゃんねる' }
  its(:title) { should == 'これがまどかが望んだ世界? 【同人】 : おっきちゃんねる -エロ画像速報-' }
  its(:base_dir) { should == 'okki_channel' }
  its(:sub_directory) { should == '18023383' }
  its("targets.count") { should == 30 }
end

Version data entries

7 entries across 7 versions & 1 rubygems

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