Fixed "string vs. integer" spec breakage in spec/models/user/querying_spec.rb .
This commit is contained in:
parent
6849c3604b
commit
a60e74f339
1 changed files with 1 additions and 1 deletions
|
|
@ -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={})
|
||||
|
|
|
|||
Loading…
Reference in a new issue