根据 Michael Hartl 的 Rails 教程,在运行规范时,我不断得到以下信息:
Failures:
1) User should create a new instance given valid attributes
Failure/Error: User.create!(@attr)
ActiveRecord::StatementInvalid:
SQLite3::SQLException: near "SAVEPOINT": syntax error: SAVEPOINT active_record_1
# ./spec/models/user_spec.rb:15:in `block (2 levels) in <top (required)>'
我已经在系统上将我的 sqlite 3 版本升级到了 3.7.13。关于如何解决此问题以使测试通过的任何想法?