步:
And I should not see 'G'
步骤定义失败:
Then /^(?:|I )should not see '([^']*)'$/ do |text| save_and_open_page if page.respond_to? :should page.find('#movIEs').should have_no_content(text) else assert page.find('#movIEs').has_no_content?(text) end end
错误是:
expected #has_no_content?(“G”) to return true,got false
(RSpec::Expectations::ExpectationNotMetError)
./features/step_deFinitions/movIE_steps.rb:35:in/^(?:|I )should not see '([^']*)'$/'
And I should not see ‘G”
features/filter_movIE_List.feature:37:in
电影是桌子的ID.
表看起来像:
我被困在这里,无法走得更远.有人能给我一些提示来解决这个问题吗?
解决方法 您可以尝试:assert page.find('#movIEs').has_no_content?(">#{text}<")总结
以上是内存溢出为你收集整理的ruby-on-rails – 如何检查表列是否给出了文本?全部内容,希望文章能够帮你解决ruby-on-rails – 如何检查表列是否给出了文本?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)