got to be careful with integrity specs
This commit is contained in:
parent
266322ce2e
commit
b8dc58be90
|
@ -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: [],
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue