一直都是用 Capybara 1.x 最近才刚开始看 2.0
直接换上 2.0 之后首先碰到一个错误
NoMethodError:
undefined method `visit' for #<RSpec::Core::ExampleGroup::Nested_1::Nested_1:0x007ff2f576dac8>
转了一圈才发现 Capybara 2.0 已经把 spec/requests
给挪到 spec/features
啦
http://alindeman.github.com/2012/11/11/rspec-rails-and-capybara-2.0-what-you-need-to-know.html
https://github.com/rspec/rspec-rails/blob/master/Capybara.md
https://github.com/rspec/rspec-rails/issues/360
论坛里没见有人提过……是我火星了么……