【发布时间】:2010-11-19 01:54:47
【问题描述】:
当  被添加到我的布局时,我有一个黄瓜步骤最近开始失败。如果我把  拿出来,我的测试都会通过。当我把它放回去时,使用 WebRat 提供的 click_link 方法的每个测试都会失败并显示以下消息:
And he follows 'Unsubscribe'
incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string) (Encoding::CompatibilityError)
(eval):3:in `click_link`
(eval):2:in `click_link`
/path_to_project/webrat_steps.rb:19:in `/^(I|he|she) follows? '([^\"]*)'$/'
features/manage_subscriptions.feature:59:in `And he follows 'Unsubscribe''
有人有什么建议吗?
【问题讨论】:
标签: ruby-on-rails cucumber webrat