2

I don't understand why I am seeing this error when my rails application is not using postgres. Any suggestions on how to resolve this?

c:\>rspec my_spec.rb

An error occurred in an after hook
  NameError: undefined local variable or method `postgresql_version' for #<ActiveRecord::ConnectionAdapters::SQLite3Adapter:0x41284c8>
  occurred at C:/Ruby193/lib/ruby/gems/1.9.1/gems/database_cleaner-1.1.1/lib/database_cleaner/active_record/truncation.rb:123:in `db_version'

F
1

1 Answer 1

2

According to this, the current recommended approach is to use a version rule of "<1.1.0"

https://github.com/bmabey/database_cleaner/issues/224

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.