Sha256: 276de7b4982a01f079b8d9538a091fe1cc776a8b48e8a5dacf1a4684dba03124
Contents?: true
Size: 501 Bytes
Versions: 5
Compression:
Stored size: 501 Bytes
Contents
require 'spec_helper' describe SitemapsController do describe :show do it "should return the sitemap urls" do Spud::Core.sitemap_urls = [ "http://www.google.com", "http://www.example.com" ] get :show, :format => :xml assigns(:sitemap_urls).should == Spud::Core.sitemap_urls end it "should only respond to an XML format" do expect { get :show }.to raise_exception(ActionController::UnknownFormat) end end end
Version data entries
5 entries across 5 versions & 1 rubygems