Sha256: 85282400bb586daaf764bdd20c92e6af6e7a70b8dcec9e5d1adaa13a7f35c3ab

Contents?: true

Size: 593 Bytes

Versions: 4

Compression:

Stored size: 593 Bytes

Contents

require 'spec_helper'

describe 'XmlSitemap' do
  describe '#new' do
    it 'returns a new map instance' do
      XmlSitemap.new('foo.com').should be_a XmlSitemap::Map
    end
  end

  describe '#map' do
    it 'returns a new map instance' do
      XmlSitemap.map('foo.com').should be_a XmlSitemap::Map
    end
  end

  describe '#index' do
    it 'returns a new index instancet' do
      XmlSitemap.index.should be_a XmlSitemap::Index
    end
  end

  describe '#version' do
    it 'returns current version string' do
      XmlSitemap.version.should eq(XmlSitemap::VERSION)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
xml-sitemap-1.3.3 spec/xmlsitemap_spec.rb
xml-sitemap-1.3.2 spec/xmlsitemap_spec.rb
xml-sitemap-1.3.1 spec/xmlsitemap_spec.rb
xml-sitemap-1.3.0 spec/xmlsitemap_spec.rb