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