Don't double ActiveRecord::Base in specs

The method stubs can be used on the real object instead.
Add basic integration test using real ActiveRecord
Convert the Arel query object to a SQL string before executing it.
Fixed issue after unhash did not use the result.
Merge branch 'rails3.0-arel' into integrated
Merge branch 'unhash-result' into integrated