Full localization implementation

This commit is contained in:
2013-03-03 16:43:27 +01:00
parent 27c188773a
commit 1eb181b043
5 changed files with 32 additions and 7 deletions
+9
View File
@@ -0,0 +1,9 @@
require "spec_helper"
describe "routing" do
it('roots to pages#home'){get('/').should route_to('pages#home', locale: 'nl')}
it('roots to pages#home for en locale'){get('/en').should route_to('pages#home', locale: 'en')}
it('handles about page as root'){ get('/about').should route_to('pages#show', name: 'about', locale: 'nl')}
it('handles about page in nl'){ get('/nl/about').should route_to('pages#show', name: 'about', locale: 'nl')}
it('handles about page in en'){ get('/en/about').should route_to('pages#show', name: 'about', locale: 'en')}
end