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.should_receive(:i18n_enabled?).and_return(true)

      get :index

      response.should be_success
    end

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

      get :index

      response.should be_success
    end

  end
end

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

Fix 2 failling sitemap controller specs.
Fix 2 failling sitemap controller specs.
