Skip to content

Loading…

Make tests able to run with most recent ActiveRecord version #63

Merged
merged 1 commit into from

2 participants

@ebakan

Fixes the following:
(...)/activerecord-4.1.4/lib/active_record/connection_handling.rb:3:in `block in module:ConnectionHandling': undefined method `env' for Rails:Class (NoMethodError)

@rroblak rroblak merged commit b254dd0 into rroblak:master
@rroblak
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Showing with 4 additions and 0 deletions.
  1. +4 −0 spec/helpers.rb
View
4 spec/helpers.rb
@@ -22,6 +22,10 @@ def self.eager_load!
@already_called = true
end
end
+
+ def self.env
+ 'test'
+ end
end
module Helpers
Something went wrong with that request. Please try again.