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