spec/routing_spec.rb in alchemy_cms-2.1.beta1 vs spec/routing_spec.rb in alchemy_cms-2.1.beta5
- old
+ new
@@ -3,45 +3,49 @@
describe "The Routing", :type => :routing do
context "for downloads" do
it "should have a named route" do
+ pending "Because Rspec does not support namespaced engines yet!"
{
- :get => "/attachment/32/download/Presseveranstaltung.pdf"
+ :get => "/alchemy/attachment/32/download/Presseveranstaltung.pdf"
}.should route_to(
- :controller => "attachments",
+ :controller => "alchemy/attachments",
:action => "download",
:id => "32",
:name => "Presseveranstaltung",
:suffix => "pdf"
)
end
it "should have a route for legacy Alchemy 1.x downloads" do
+ pending "Because Rspec does not support namespaced engines yet!"
{
- :get => "/attachment/32/download?name=Presseveranstaltung.pdf"
+ :get => "/alchemy/attachment/32/download?name=Presseveranstaltung.pdf"
}.should route_to(
- :controller => "attachments",
+ :controller => "alchemy/attachments",
:action => "download",
:id => "32"
)
end
it "should have a route for legacy washAPP downloads" do
+ pending "Because Rspec does not support namespaced engines yet!"
{
- :get => "/wa_files/download/11"
+ :get => "/alchemy/wa_files/download/11"
}.should route_to(
- :controller => "attachments",
+ :controller => "alchemy/attachments",
:action => "download",
:id => "11"
)
end
it "should have a route for legacy WebMate downloads" do
+ pending "Because Rspec does not support namespaced engines yet!"
{
- :get => "/uploads/files/0000/0028/Pressetext.pdf"
+ :get => "/alchemy/uploads/files/0000/0028/Pressetext.pdf"
}.should route_to(
- :controller => "attachments",
+ :controller => "alchemy/attachments",
:action => "download",
:id => "0028",
:name => "Pressetext",
:suffix => "pdf"
)