Rspec &引用;失败/错误:无法从回溯中找到匹配行;使用webkit运行capybara时
当我像这样运行Rspec &引用;失败/错误:无法从回溯中找到匹配行;使用webkit运行capybara时,rspec,capybara,capybara-webkit,Rspec,Capybara,Capybara Webkit,当我像这样运行:focus=>true时,效果很好: it "should send by email to new user", :js => true, :focus => true do ... end 然而,当我删除:focus=>true并运行完整的测试套件时,我在该测试中得到了这个错误 Failure/Error: Unable to find matching line from backtrace 这似乎与:js=>true有关,可能因为这是我开始使用它的第一
:focus=>true
时,效果很好:
it "should send by email to new user", :js => true, :focus => true do
...
end
然而,当我删除:focus=>true
并运行完整的测试套件时,我在该测试中得到了这个错误
Failure/Error: Unable to find matching line from backtrace
这似乎与:js=>true有关,可能因为这是我开始使用它的第一个测试。当我单独运行一个测试时,capybara webkit会在屏幕上打印一组警告
但是当我运行完整的套件时,我没有看到来自webkit的警告,所以它几乎就像没有被加载一样
有什么想法吗?谢谢,我真的很感激
如果您好奇,这里是我的GEM文件的相关部分:
group :test do
gem "rspec-rails", '2.10.1'
gem "ruby_gntp", '0.3.4'
gem 'capybara', '1.1.2'
gem 'capybara-webkit', '0.11.0' # requires "brew install qt"
gem 'guard-rspec', '0.6.0'
gem 'mocha', '0.10.0'
gem 'spork', '~> 1.0rc'
gem 'guard-spork', '0.5.2'
gem 'launchy', '2.0.5'
end
嗯,我似乎解决了这个问题,但我不认为这与水豚或网络工具包有任何关系。这似乎是我遇到的一个问题。在Rails.env.test中,我基本上调用了EventMachine的send_data
。我仍然不知道为什么它不能得到回溯