Sha256: c9598be8e8a29a30b0b89e401e37e4b5f1af230a454e8ec5d4f6f38a290b1392

Contents?: true

Size: 555 Bytes

Versions: 5

Compression:

Stored size: 555 Bytes

Contents

require 'spec_helper'

describe Spud::Inquiries::SitemapsController do
  describe :show do
    before(:each) do
      Spud::Core.configure do |config|
        config.site_name = "Test Site"
        config.multisite_mode_enabled = false
        config.multisite_config = []
      end
    end

    it "should return the sitemap urls" do
      get :show, :format => :xml
      assigns(:forms).should == SpudInquiryForm.all
    end

    it "should only respond to an XML format" do
      get :show
      response.response_code.should == 406
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spud_inquiries-1.0.0.rc1.1 spec/controllers/spud/inquiries/sitemaps_controller_spec.rb
spud_inquiries-1.0.0.rc1 spec/controllers/spud/inquiries/sitemaps_controller_spec.rb
spud_inquiries-0.9.5 spec/controllers/spud/inquiries/sitemaps_controller_spec.rb
spud_inquiries-0.9.3 spec/controllers/spud/inquiries/sitemaps_controller_spec.rb
spud_inquiries-0.9.2 spec/controllers/spud/inquiries/sitemaps_controller_spec.rb