fix cucumber stories including test for i18n

This commit is contained in:
Reinier Balt 2011-07-09 14:53:37 +02:00
parent 601736de2d
commit 8109391f89
6 changed files with 796 additions and 731 deletions

View file

@ -7,9 +7,9 @@ module NavigationHelpers
#
def path_to(page_name)
options = @mobile_interface ? {:format => :m} : {}
options.merge({:locale => @locale}) unless @locale.blank?
puts "@@@ l=#{@locale} sv = #{@source_view}- #{options}"
options = {:locale => @locale}.merge(options) if @locale
@source_view = nil
case page_name
when /the home\s?page/