According to this, the current recommended approach is to use a version rule of "<1.1.0"
rspec NameError for postgresql_version
-
24-06-2022 - |
Question
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
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow