Sha256: 92ba82be9811d2368f2ebadb595fc2e29fed22b97a85359ec49768f2f85488ec

Contents?: true

Size: 652 Bytes

Versions: 4

Compression:

Stored size: 652 Bytes

Contents

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

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