Sha256: da258cb76af9d731cb13a76143a861bb83c496c7e60ad38caec00ec63320cf70

Contents?: true

Size: 674 Bytes

Versions: 4

Compression:

Stored size: 674 Bytes

Contents

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

describe Sniffles::Sniffers::Movabletype do
  describe "#output" do    
    context "movabletype", :vcr => { :cassette_name => "movabletype_com_blog" } do
      let(:movabletype)   { described_class.new(page_body("http://www.movabletype.com/blog/")) }
      
      it { movabletype.output[:found].should eq true }
    end
    
    context "not movabletype" 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/movabletype_spec.rb
sniffles-0.1.4 spec/sniffles/sniffers/cms/movabletype_spec.rb
sniffles-0.1.3 spec/sniffles/sniffers/cms/movabletype_spec.rb
sniffles-0.1.2 spec/sniffles/sniffers/cms/movabletype_spec.rb