更新:私の問題は間違いなくこれに関連しています。これは ActiveRecord の問題です。まだ解決していません。
rspec でテストをパスさせようとしていますが、何が問題なのかわかりません...ここに私が得ているものがあります:
Running: spec/models/user_spec.rb
.
.
.
........F
Failures:
1) User when email address is already taken
Failure/Error: user_with_same_email.save
ActiveRecord::StatementInvalid:
SQLite3::SQLException: near "SAVEPOINT":
syntax error: SAVEPOINT active_record_1
# ./spec/models/user_spec.rb:64:in `block (3 levels) in <top (required)>'
Finished in 0.22908 seconds
9 examples, 1 failure
私のテストで関連する行は次のとおりです。
user_with_same_email.save
データベースに書き込もうとすると壊れます。開発は問題ありません。問題はありません。ありがとう