Sha256: 276de7b4982a01f079b8d9538a091fe1cc776a8b48e8a5dacf1a4684dba03124

Contents?: true

Size: 501 Bytes

Versions: 5

Compression:

Stored size: 501 Bytes

Contents

require 'spec_helper'

describe SitemapsController do
  describe :show do
    it "should return the sitemap urls" do
      Spud::Core.sitemap_urls = [
        "http://www.google.com",
        "http://www.example.com"
      ]
      get :show, :format => :xml
      
      assigns(:sitemap_urls).should == Spud::Core.sitemap_urls
    end
    
    it "should only respond to an XML format" do
      expect {
        get :show
      }.to raise_exception(ActionController::UnknownFormat)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tb_core-1.2.4 spec/controllers/sitemap_controllers_spec.rb
tb_core-1.2.3 spec/controllers/sitemap_controllers_spec.rb
tb_core-1.2.2 spec/controllers/sitemap_controllers_spec.rb
tb_core-1.2.1 spec/controllers/sitemap_controllers_spec.rb
tb_core-1.2.0 spec/controllers/sitemap_controllers_spec.rb