当前的capybara-bootstrap-datepicker不适用于日语语言环境

时间:2014-07-08 14:14:20

标签: capybara rspec-rails capybara-webkit

当前的capybara-bootstrap-datepicker不适用于日语语言环境

当我运行Rspec时,它会给我以下错误

失败/错误:select_date(Date.yesterday,xpath:" //输入[@id =' select_year_month']",datepicker :: bootstrap,格式:&#34 ;%Y /%米/%d&#34)

水豚:: ElementNotFound:        无法找到css" .month"与文本" Jul"

截至月份显示的是ja locale,如1月"," 2月"," 3月"," 4月&# 34;," 5月"," 6月"," 7月"," 8月",&#34 ; 9月"," 10月"," 11月"," 12月" " Jan"," 2月"," 3月"," 4月"," 5月",&#34 ; Jun"," Jul"," Aug"," Sep"," Oct"," Nov" ," Dec"

1 个答案:

答案 0 :(得分:1)

我刚刚发布了capybara-bootstrap-datepicker gem的新版本,并提供了本地化的datepicker支持。

0.1.1版本的更新应解决您的问题。