Created
August 8, 2008 13:30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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