spec/routing/pages_routing_spec.rb in kuhsaft-0.0.3 vs spec/routing/pages_routing_spec.rb in kuhsaft-0.0.4
- old
+ new
@@ -1,26 +1,13 @@
require 'spec_helper'
describe 'routing to Kuhsaft::PagesController' do
- it 'routes /:translation_locale/:slug to pages#show' do
+ it 'routes /*url to pages#show' do
{ :get => '/en/my-slug' }.should route_to(
:controller => 'kuhsaft/pages',
:action => 'show',
- :slug => 'my-slug',
- :translation_locale => 'en'
+ :url => 'en/my-slug'
)
- end
-
- it 'does not expose pages#new' do
- { :get => '/pages/new' }.should_not be_routable
- end
-
- it 'does not expose pages#edit' do
- { :get => '/pages/1/edit' }.should_not be_routable
- end
-
- it 'does not expose pages#destroy' do
- { :get => '/pages/1/destroy' }.should_not be_routable
end
end
describe 'routing to Kuhsaft::Admin::PagesController' do
it 'routes /admin/pages to admin/pages#index' do
\ No newline at end of file