UPDATE: My problem is definitely related to this - this is a problem with ActiveRecord. Still not resolved.
I am trying to pass a test in rspec and cannot figure out what will go wrong ... Here is what I get:
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
Finished in 0.22908 seconds
9 examples, 1 failure
Here is the corresponding line in my test:
user_with_same_email.save
it breaks when trying to write to db. Development is fine - no problem. Thanks
source
share