Skip to content

Commit

Permalink
pin database_cleaner to version 1.0.1
Browse files Browse the repository at this point in the history
The tests were failing with:
~/.rvm/gems/ruby-2.0.0-p247/gems/database_cleaner-1.1.0/lib/database_cleaner/active_record/truncation.rb:123:in `db_version': undefined local variable or method `postgresql_version' for #<ActiveRecord::ConnectionAdapters::SQLite3Adapter:0x007fd28ac70df8> (NameError)

Here's the bug report: DatabaseCleaner/database_cleaner#224

Looks like it might be a while until a fix happens so for the time
being we'll pin database_cleaner to version 1.0.1 which appears to
work.
  • Loading branch information
toby cabot committed Aug 15, 2013
1 parent fb511b2 commit 4727a82
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion surveyor.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,14 @@ Gem::Specification.new do |s|
s.add_development_dependency('factory_girl')#, '~> 2.1.2')
s.add_development_dependency('sqlite3')
s.add_development_dependency('cucumber-rails')#, '~> 1.1.1')
s.add_development_dependency('database_cleaner')#, '~> 0.6.7')

# FIXME
# https://github.com/bmabey/database_cleaner/issues/224
# tests failed because the database_cleaner postgresql monkeypatch
# was being applied to the same adapter as the sqlite monkeypatch.
# 1.0.1 is the last known-good version.
s.add_development_dependency('database_cleaner', '= 1.0.1')

s.add_development_dependency('launchy')#, '~> 2.0.5')
s.add_development_dependency('capybara')#, '~> 1.1.1')
s.add_development_dependency('ci_reporter')#, '1.6.6')
Expand Down

0 comments on commit 4727a82

Please sign in to comment.