Sha256: f9d9740721942af47c1c8ed0da1ce438aedc3eee8e00385443d8a66fe2c6dd67

Contents?: true

Size: 466 Bytes

Versions: 10

Compression:

Stored size: 466 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
      get :show
      response.response_code.should == 406
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tb_core-1.1.10 spec/controllers/sitemap_controllers_spec.rb
tb_core-1.1.9 spec/controllers/sitemap_controllers_spec.rb
tb_core-1.1.8 spec/controllers/sitemap_controllers_spec.rb
tb_core-1.1.7 spec/controllers/sitemap_controllers_spec.rb
tb_core-1.1.6 spec/controllers/sitemap_controllers_spec.rb
tb_core-1.1.5 spec/controllers/sitemap_controllers_spec.rb
tb_core-1.1.4 spec/controllers/sitemap_controllers_spec.rb
tb_core-1.1.2 spec/controllers/sitemap_controllers_spec.rb
tb_core-1.1.1 spec/controllers/sitemap_controllers_spec.rb
tb_core-1.1.0 spec/controllers/sitemap_controllers_spec.rb