Permalink
Browse files

class_eval should use __FILE__ and __LINE__

  • Loading branch information...
1 parent bb21d6e commit 551c9232de911c29f4d66277c3c04dd181a8b2f9 Neeraj Singh committed Jan 30, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 551c923

Please sign in to comment.