Merge pull request #2172 from Pistos/fix-querying-spec-under-postgresql

Fixed "string vs. integer" spec breakage in spec/models/user/querying_spec.rb
This commit is contained in:
Daniel Grippi 2011-10-12 09:35:59 -07:00
commit 9d393d0b59

View file

@ -41,7 +41,7 @@ module Diaspora
# @return [Array<Integer>]
def visible_ids_from_sql(opts={})
opts = prep_opts(opts)
Post.connection.select_values(visible_posts_sql(opts))
Post.connection.select_values(visible_posts_sql(opts)).map { |id| id.to_i }
end
def visible_posts_sql(opts={})