我正在尝试在我的应用程序中使用Capybara。不幸的是,我制作的场景没有运行。
require 'spec_helper'
require 'capybara/rspec'
feature 'User navigates to the home page' do
p "in feature"
scenario 'she sees a list' do
p "begin scenario"
end
end
仅执行第一次打印。然后出现以下错误:
Failure/Error: Unable to find matching line from backtrace
NoMethodError:
undefined method `uses_transaction?' for RSpec::ExampleGroups::UserNavigatesToTheHomePage:Class
# /Users/octavian/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/fixtures.rb:922:in `run_in_transaction?'
# /Users/octavian/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/fixtures.rb:935:in `setup_fixtures'
# /Users/octavian/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.1/lib/active_record/fixtures.rb:824:in `before_setup'