Sha256: dcfab4fe53f5081deed144b1b1d9c865af5913170c533d65308785d8a7928a53

Contents?: true

Size: 516 Bytes

Versions: 10

Compression:

Stored size: 516 Bytes

Contents

require 'spec_helper'


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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
refinerycms-core-1.0.11 spec/controllers/sitemap_controller_spec.rb
refinerycms-core-1.0.10 spec/controllers/sitemap_controller_spec.rb
refinerycms-core-1.0.9 spec/controllers/sitemap_controller_spec.rb
refinerycms-core-1.0.8 spec/controllers/sitemap_controller_spec.rb
refinerycms-core-1.0.7 spec/controllers/sitemap_controller_spec.rb
refinerycms-core-1.0.5 spec/controllers/sitemap_controller_spec.rb
refinerycms-core-1.0.4 spec/controllers/sitemap_controller_spec.rb
refinerycms-core-1.0.3 spec/controllers/sitemap_controller_spec.rb
refinerycms-core-1.0.1 spec/controllers/sitemap_controller_spec.rb
refinerycms-core-1.0.0 spec/controllers/sitemap_controller_spec.rb