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

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

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

@ -43,7 +43,7 @@ describe UserActionsController do
expect(response.status).to eq(200) expect(response.status).to eq(200)
parsed = JSON.parse(response.body) 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 end
context "queued posts" do context "queued posts" do