Sha256: 3ff866c994d41eb0bb0d679c738967646787ac855a0d1acb41960d8a63fac525
Contents?: true
Size: 806 Bytes
Versions: 16
Compression:
Stored size: 806 Bytes
Contents
require 'spec_helper' module Landable::Public describe SitemapController do routes { Landable::Engine.routes } it 'returns a 200 status' do get :index response.status.should == 200 end it 'returns xml' do get :index response.content_type.should == 'application/xml' end it 'calls generate_sitemap with appropriate arguments' do Landable::Page.should_receive(:generate_sitemap).with(host: 'test.host', protocol: 'https', exclude_categories: ['Testing'], sitemap_additional_paths: ['/terms.html']).and_call_original get :index, format: :xml end end end
Version data entries
16 entries across 16 versions & 1 rubygems