Sha256: 43c33527ad37f6a3aa6f20c1948b1978a8ef8f11f42d0d7ee6902a0e47737317
Contents?: true
Size: 1.13 KB
Versions: 3
Compression:
Stored size: 1.13 KB
Contents
require 'spec_helper' describe "The Routing", :type => :routing do context "for downloads" do it "should have a named route" do { :get => "/attachment/32/download/Presseveranstaltung.pdf" }.should route_to( :controller => "attachments", :action => "download", :id => "32", :name => "Presseveranstaltung", :format => "pdf" ) end it "should have a route for legacy Alchemy 1.x downloads" do { :get => "/attachment/32/download?name=Presseveranstaltung.pdf" }.should route_to( :controller => "attachments", :action => "download", :id => "32" ) end it "should have a route for legacy washAPP downloads" do { :get => "/wa_files/download/11" }.should route_to( :controller => "attachments", :action => "download", :id => "11" ) end it "should have a route for legacy WebMate downloads" do { :get => "/uploads/files/0000/0028/Pressetext.pdf" }.should route_to( :controller => "attachments", :action => "download", :id => "0028", :name => "Pressetext", :suffix => "pdf" ) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
alchemy_cms-2.0.7 | spec/routing_spec.rb |
alchemy_cms-2.0.6.1 | spec/routing_spec.rb |
alchemy_cms-2.0.5 | spec/routing_spec.rb |