Sha256: 439f4697b09b11b2793c615fc99af5db37253ad4137c1e274f2ade8a0a26a662
Contents?: true
Size: 785 Bytes
Versions: 4
Compression:
Stored size: 785 Bytes
Contents
require 'spec_helper' describe Wombat do it 'should provide syntactic sugar method Wombat.crawl' do Wombat.should respond_to(:crawl) end it 'should provide syntactic sugar method Wombat.scrape' do Wombat.should respond_to(:scrape) end it 'should redirect .scrape to .crawl' do fake_class = double :fake fake_class.stub :include fake_class.should_receive(:new).and_return(stub(crawl: nil)) Class.stub :new => fake_class Wombat.scrape end it 'should accept regular properties (non-selectors)' do VCR.use_cassette('broken_selector') do lambda { Wombat.crawl do base_url "http://www.github.com" path "/" source :obaoba description 'Oba Oba' website 'http://obaoba.com.br' end }.should_not raise_error end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
wombat-2.1.1 | spec/wombat_spec.rb |
wombat-2.1.0 | spec/wombat_spec.rb |
wombat-2.0.1 | spec/wombat_spec.rb |
wombat-2.0.0 | spec/wombat_spec.rb |