Permalink
Browse files

Merge pull request #9125 from neerajdotname/master

class_eval should use __FILE__ and __LINE__
  • Loading branch information...
2 parents bb21d6e + 551c923 commit 162f7c1edcc45074aca482b4688a08e8ab41083f @carlosantoniodasilva carlosantoniodasilva committed Jan 30, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/adapters/postgresql/connection_test.rb
View
2 activerecord/test/cases/adapters/postgresql/connection_test.rb
@@ -108,7 +108,7 @@ def query_fake(*args)
@connection.verify!
new_connection_pid = @connection.query('select pg_backend_pid()')
ensure
- raw_connection_class.class_eval <<-CODE
+ raw_connection_class.class_eval <<-CODE, __FILE__, __LINE__ + 1
alias query query_unfake
undef query_fake
CODE

0 comments on commit 162f7c1

Please sign in to comment.