Sha256: 674cb49ca4e0de5e33ba0d2ced402b6a5c3a4c8eb43631017e996fc810e90dad
Contents?: true
Size: 497 Bytes
Versions: 10
Compression:
Stored size: 497 Bytes
Contents
require 'spec_helper' describe Spud::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
10 entries across 10 versions & 1 rubygems