Skip to content

Commit

Permalink
Fix tests on 3.2.19
Browse files Browse the repository at this point in the history
  • Loading branch information
viraptor committed Jul 4, 2017
1 parent 7b766d9 commit cf76b40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/query_comments_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def test_database

def test_socket
# setting socket in configuration would break some connections - mock it instead
pool = ActiveRecord::Base.connection_handler.connection_pool_list[0]
pool = ActiveRecord::Base.connection_pool
pool.spec.stubs(:config).returns({:socket => "marginalia_socket"})
Marginalia::Comment.components = [:socket]
API::V1::PostsController.action(:driver_only).call(@env)
Expand Down

0 comments on commit cf76b40

Please sign in to comment.