I try to build my site with as much as possible testing, but since I integrated i18n many of my tests failed. Of course it is because of my standard locales. But how do I ignore the locales while testing? My about link looks like: /about?locale=en and the test:
test "layout links" do
get root_path
assert_template 'static_pages/home'
assert_select "a[href=?]", root_path, count: 1
assert_select "a[href=?]", helf_path
assert_select "a[href=?]", about_path
assert_select "a[href=?]", contact_path
end
Aucun commentaire:
Enregistrer un commentaire