tests: fixup tests.

This commit is contained in:
evazion
2019-09-09 11:51:01 -05:00
parent efca48ee96
commit d812a19902
6 changed files with 12 additions and 10 deletions

View File

@@ -21,7 +21,8 @@ class TagsController < ApplicationController
@tags = Tag.names_matches_with_aliases(params[:search][:name_matches])
end
respond_with(@tags, root: "tags")
# XXX
respond_with(@tags.map(&:attributes))
end
def show

View File

@@ -235,6 +235,7 @@ class ApplicationRecord < ActiveRecord::Base
end
def serializable_hash(options = {})
options ||= {}
options[:only] ||= []
options[:include] ||= []
options[:methods] ||= []