Sha256: 94f5cec24bfdd67c7d877b96b3dc886713d9f912a889d66ed0c8e3a8f8f0d366

Contents?: true

Size: 644 Bytes

Versions: 5

Compression:

Stored size: 644 Bytes

Contents

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

describe Sniffles::Sniffers::Blogger do
  describe "#output" do    
    context "blogger", :vcr => { :cassette_name => "google_blogspot_com" } do
      let(:blogger)   { described_class.new(page_body("http://google.blogspot.com/")) }
      
      it { blogger.output[:found].should eq true }
    end
    
    context "not blogger" 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/blogger_spec.rb
sniffles-0.1.5 spec/sniffles/sniffers/cms/blogger_spec.rb
sniffles-0.1.4 spec/sniffles/sniffers/cms/blogger_spec.rb
sniffles-0.1.3 spec/sniffles/sniffers/cms/blogger_spec.rb
sniffles-0.1.2 spec/sniffles/sniffers/cms/blogger_spec.rb