Browse files

Stop being silly with formatting of method aliasing.

  • Loading branch information...
1 parent 6d5f4de commit 4b1bca04025a66c54e6e9d5eb6e4d4056bfa92f0 Steve Jorgensen committed Jul 16, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 activerecord/test/cases/adapters/postgresql/connection_test.rb
View
6 activerecord/test/cases/adapters/postgresql/connection_test.rb
@@ -99,16 +99,16 @@ def query_fake(*args)
end
end
- alias query_unfake query
- alias query query_fake
+ alias query_unfake query
+ alias query query_fake
CODE
begin
@connection.verify!
new_connection_pid = @connection.query('select pg_backend_pid()')
ensure
connection_class.class_eval <<-CODE
- alias query query_unfake
+ alias query query_unfake
undef query_fake
CODE
end

0 comments on commit 4b1bca0

Please sign in to comment.