Sha256: 5816d684abd4c023da1e6950ab373304c964712cb42463181d8c37b209d67182

Contents?: true

Size: 624 Bytes

Versions: 2

Compression:

Stored size: 624 Bytes

Contents

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

describe Sniffles::Sniffers::Drupal do
  describe "#output" do    
    context "drupal", :vcr => { :cassette_name => "drupal" } do
      let(:drupal)   { described_class.new(page_body("http://www.whitehouse.gov/")) }
      
      it { drupal.output[:found].should eq true }
    end
    
    context "not drupal" do
      let(:blank)   { described_class.new(empty_html_doc) }
      
      it { blank.output[:found].should eq false }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sniffles-0.2.0 spec/sniffles/sniffers/cms/drupal_spec.rb
sniffles-0.1.5 spec/sniffles/sniffers/cms/drupal_spec.rb