Sha256: 674cb49ca4e0de5e33ba0d2ced402b6a5c3a4c8eb43631017e996fc810e90dad

Contents?: true

Size: 497 Bytes

Versions: 10

Compression:

Stored size: 497 Bytes

Contents

require 'spec_helper'

describe Spud::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

10 entries across 10 versions & 1 rubygems

Version Path
spud_core-1.0.6 spec/controllers/spud/sitemap_controllers_spec.rb
spud_core-1.0.5 spec/controllers/spud/sitemap_controllers_spec.rb
spud_core-1.0.4 spec/controllers/spud/sitemap_controllers_spec.rb
spud_core-1.0.3 spec/controllers/spud/sitemap_controllers_spec.rb
spud_core-1.0.2 spec/controllers/spud/sitemap_controllers_spec.rb
spud_core-1.0.1 spec/controllers/spud/sitemap_controllers_spec.rb
spud_core-1.0.0 spec/controllers/spud/sitemap_controllers_spec.rb
spud_core-1.0.0.rc2 spec/controllers/spud/sitemap_controllers_spec.rb
spud_core-1.0.0.rc1.1 spec/controllers/spud/sitemap_controllers_spec.rb
spud_core-1.0.0.rc1 spec/controllers/spud/sitemap_controllers_spec.rb