Sha256: e7abb80e0c77ef1d1f59c15920d4947ed16b0fe2b7fceb39bac19b55a6f95594

Contents?: true

Size: 798 Bytes

Versions: 2

Compression:

Stored size: 798 Bytes

Contents

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

describe Sniffles::Sniffers::Sitefinity do
  describe "#output" do    
    context "Sitefinity", :vcr => { :cassette_name => "sitefinity_com" } do
      let(:sitefinity)   { described_class.new(page_body("http://sites.kiwanis.org/kiwanis/en/home.aspx")) }
      
      it { sitefinity.output[:found].should eq true }
      it { sitefinity.output[:version].should eq "3.7" }
    end
    
    context "Not a Sitefinity website" do
      let(:blank)   { described_class.new(empty_html_doc) }
      
      it { blank.output[:found].should eq false }
      it { blank.output[:version].nil?.should eq true }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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