[rspec-users] spec with user culture
Gnagno Gnagno
lists at ruby-forum.com
Tue Dec 22 06:26:23 EST 2009
Hello all,
I am making my first experiments with rspec, I wanted to do something
like this:
when a user visit the home page of my site he will be redirected
depending on his culture, so if his culture is english he will be
redirected to myapp/en if he is italian to myapp/it and so on....
how can I say this with rspec?
I was trying something like:
it "should redirect to spanish home page" do
get 'index'
#don't know how to say the culture is spanish
response.should redirect_to(spanish_home_page)
end
any help?
Thanks
Gnagno
--
Posted via http://www.ruby-forum.com/.
More information about the rspec-users
mailing list