Permalink
Browse files

Rails 4 compat: AR::Base.silence requires an argument

  • Loading branch information...
1 parent bd00b43 commit c5abe4da5b98c877dffbd70351b04d1bc3967c0e @mislav committed Jun 21, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 spec/finders/activerecord_test_connector.rb
@@ -73,7 +73,10 @@ def setup_connection
end
def load_schema
- ActiveRecord::Base.silence do
+ silencer = ActiveRecord::Base.method(:silence)
+ silence_args = []
+ silence_args << :stdout if silencer.arity != 0
+ silencer.call(*silence_args) do
ActiveRecord::Migration.verbose = false
load File.join(FIXTURES_PATH, 'schema.rb')
end

0 comments on commit c5abe4d

Please sign in to comment.