Fixed "string vs. integer" spec breakage in spec/models/user/querying_spec.rb .

This commit is contained in:
Pistos 2011-10-08 01:09:05 -04:00
parent 6849c3604b
commit a60e74f339

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={})