Sha256: 7bd703973111344825bc6a1106849966464a6958b7922b708f16fd6f11ed7743

Contents?: true

Size: 547 Bytes

Versions: 11

Compression:

Stored size: 547 Bytes

Contents

require 'spec_helper'

module Refinery
  describe SitemapController do
    login_refinery_user

    before (:each) do
      @request.env['HTTP_ACCEPT'] = 'application/xml'
    end

    it "should show a valid xml answer with i18n enabled" do
      ::Refinery.stub(:i18n_enabled?).and_return(true)

      get :index

      response.should be_success
    end

    it "should show a valid xml answer with i18n disabled" do
      ::Refinery.stub(:i18n_enabled?).and_return(false)

      get :index

      response.should be_success
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
refinerycms-core-2.0.10 spec/controllers/refinery/sitemap_controller_spec.rb
refinerycms-core-2.0.9 spec/controllers/refinery/sitemap_controller_spec.rb
refinerycms-core-2.0.8 spec/controllers/refinery/sitemap_controller_spec.rb
refinerycms-core-2.0.7 spec/controllers/refinery/sitemap_controller_spec.rb
refinerycms-core-2.0.6 spec/controllers/refinery/sitemap_controller_spec.rb
refinerycms-core-2.0.5 spec/controllers/refinery/sitemap_controller_spec.rb
refinerycms-core-2.0.4 spec/controllers/refinery/sitemap_controller_spec.rb
refinerycms-core-2.0.3 spec/controllers/refinery/sitemap_controller_spec.rb
refinerycms-core-2.0.2 spec/controllers/refinery/sitemap_controller_spec.rb
refinerycms-core-2.0.1 spec/controllers/refinery/sitemap_controller_spec.rb
refinerycms-core-2.0.0 spec/controllers/refinery/sitemap_controller_spec.rb