Sha256: 953bdadda295c49f0710a74c1d36ea8eb081ed1a0a29ce2a1974a20801344f33

Contents?: true

Size: 638 Bytes

Versions: 5

Compression:

Stored size: 638 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')
require File.expand_path(File.dirname(__FILE__) + '/../../../../lib/sniffles/sniffers/cms/xenforo')

describe Sniffles::Sniffers::Xenforo do
  describe "#output" do    
    context "xenforo", :vcr => { :cassette_name => "xenforo_com" } do
      let(:xenforo)   { described_class.new(page_body("http://xenforo.com/community/")) }
      
      it { xenforo.output[:found].should eq true }
    end
    
    context "not xenforo" do
      let(:blank)   { described_class.new(empty_html_doc) }
      
      it { blank.output[:found].should eq false }
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sniffles-0.2.0 spec/sniffles/sniffers/cms/xenforo_spec.rb
sniffles-0.1.5 spec/sniffles/sniffers/cms/xenforo_spec.rb
sniffles-0.1.4 spec/sniffles/sniffers/cms/xenforo_spec.rb
sniffles-0.1.3 spec/sniffles/sniffers/cms/xenforo_spec.rb
sniffles-0.1.2 spec/sniffles/sniffers/cms/xenforo_spec.rb