spec/routing/pages_routing_spec.rb in kuhsaft-0.2 vs spec/routing/pages_routing_spec.rb in kuhsaft-0.2.1
- old
+ new
@@ -3,10 +3,11 @@
describe 'routing to Kuhsaft::PagesController' do
it 'routes /*url to pages#show' do
{ :get => '/en/my-slug' }.should route_to(
:controller => 'kuhsaft/pages',
:action => 'show',
- :url => 'en/my-slug'
+ :url => 'my-slug',
+ :locale => 'en'
)
end
end
describe 'routing to Kuhsaft::cms::PagesController' do