got to be careful with integrity specs

This commit is contained in:
Sam 2016-11-29 18:01:09 +11:00
parent 266322ce2e
commit b8dc58be90
3 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@ class UserActionsController < ApplicationController
if user.id == guardian.user.try(:id)
help_key += ".self"
else
help_key += ".other"
help_key += ".others"
end
render json: {
user_action: [],

View File

@ -602,10 +602,10 @@ en:
user_activity:
no_bookmarks:
self: "You have no bookmarked posts, bookmarking posts allows you to easily access them later on."
other: "No bookmarks."
others: "No bookmarks."
no_likes_given:
self: "You have not liked any posts."
other: "No liked posts."
others: "No liked posts."
topic_flag_types:
spam:

View File

@ -43,7 +43,7 @@ describe UserActionsController do
expect(response.status).to eq(200)
parsed = JSON.parse(response.body)
expect(parsed["no_results_help"]).to eq(I18n.t("user_activity.no_bookmarks.other"))
expect(parsed["no_results_help"]).to eq(I18n.t("user_activity.no_bookmarks.others"))
end
context "queued posts" do