Skip to content

Instantly share code, notes, and snippets.

@karmi
Created August 8, 2008 13:30
Show Gist options
  • Save karmi/4567 to your computer and use it in GitHub Desktop.
Save karmi/4567 to your computer and use it in GitHub Desktop.
def test_proper_localization_for_czech
falsify_today
hostname 'www.application.cz'
get :index
assert_tag :tag => 'h1', :content => 'Program Květen/Červen 2008'
assert_select '#topMenu a', :text => 'English'
assert_select '#headMenu strong', :text => 'Program'
assert_select '#program_item_2008-05-30 .day a', :text => 'pátek 30/05'
end
def test_proper_localization_for_english
falsify_today
hostname 'www.application.com'
get :index
assert_tag :tag => 'h1', :content => 'Program May/June 2008'
assert_select '#topMenu a', :text => 'Česky'
assert_select 'strong', :text => 'Program'
assert_select '#headMenu a[href="/divadlo"]', :text => 'Theatre (dVA)'
assert_select '#program_item_2008-05-30 .day a', :text => 'friday 30/05'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment