有什么方法可以在失败的步骤上查看webrat的调试输出吗?例如,我得到以下错误:
The 'Test User' option was not found in the "user_id" select box (Webrat::NotFoundError)我想看看webrat看到的HTML输出,找出问题出在哪里。
我在Rails 3中使用RSpec 2和webrat来测试我的视图。我想确保视图没有显示特殊字符(比如“)。does not show special HTML characters' do response.should_not contain('“')问题在于,webrat有什么方法可以让RSpec或webrat解析浏览器所做的字符串吗?
我安装了所有缺少的features/step_definitions/webrat_steps.rb,并运行rails g cucumber:install,虽然没有出现任何问题,但创建gem时失败了。运行bundle还包含webrat、rspec、rspec-rails和cucumber (正如预期的那样)干杯
我想结合使用webrat和Cucumber为web应用程序编写验收测试。当我尝试安装webrat gem时,我得到下面所述的错误。据我所知,这个问题与此有关:“在C:/Ruby193/lib/ruby/gems/1.9.1/cache/webrat-0.7.3.gem”中找不到元数据
任何帮助都非常感谢,谢谢!1.9.1/rubygems/package/tar_input.rb:122 - no metadata found in C: