Sha256: f20d2427d3363dbc63bd980d2a22112379075d66b624128ca8ffaed9d090b481

Contents?: true

Size: 454 Bytes

Versions: 8

Compression:

Stored size: 454 Bytes

Contents

require 'spec_helper'

describe SitemapGenerator::Builder::SitemapIndexUrl do
  before :all do
    @s = SitemapGenerator::Builder::SitemapIndexFile.new(
      :sitemaps_path => 'sitemaps/',
      :host => 'http://test.com',
      :filename => 'sitemap_index.xml.gz'
    )
  end

  it "should return the correct url" do
    @u = SitemapGenerator::Builder::SitemapUrl.new(@s)
    @u[:loc].should == 'http://test.com/sitemaps/sitemap_index.xml.gz'
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sitemap_generator-4.0.alpha spec/sitemap_generator/builder/sitemap_index_url_spec.rb
sitemap_generator-3.4 spec/sitemap_generator/builder/sitemap_index_url_spec.rb
sitemap_generator-3.3 spec/sitemap_generator/builder/sitemap_index_url_spec.rb
sitemap_generator-3.2.1 spec/sitemap_generator/builder/sitemap_index_url_spec.rb
sitemap_generator-3.2 spec/sitemap_generator/builder/sitemap_index_url_spec.rb
sitemap_generator-3.1.1 spec/sitemap_generator/builder/sitemap_index_url_spec.rb
sitemap_generator-3.1.0 spec/sitemap_generator/builder/sitemap_index_url_spec.rb
sitemap_generator-3.0.0 spec/sitemap_generator/builder/sitemap_index_url_spec.rb