Forums vote tracking missing spaces causes awkward reading

AC-102
This commit is contained in:
Ahsan Ulhaq
2015-05-02 03:51:10 +05:00
parent bfb201ec7d
commit 95b2b82896
3 changed files with 3 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ class @DiscussionViewSpecHelper
expect(button.hasClass("is-checked")).toBe(user.voted(model))
expect(button.attr("aria-checked")).toEqual(user.voted(model).toString())
expect(button.find(".vote-count").text()).toMatch("^#{model.get('votes').up_count} Votes?$")
expect(button.find(".sr.js-sr-vote-count").text()).toMatch("^currently #{model.get('votes').up_count} votes?$")
expect(button.find(".sr.js-sr-vote-count").text()).toMatch("^there are currently #{model.get('votes').up_count} votes?$")
@checkRenderVote = (view, model) ->
view.render()

View File

@@ -113,7 +113,7 @@ if Backbone?
numVotes = votes.up_count
button.find(".js-sr-vote-count").html(
interpolate(
ngettext("currently %(numVotes)s vote", "currently %(numVotes)s votes", numVotes),
ngettext("there is currently %(numVotes)s vote", "there are currently %(numVotes)s votes", numVotes),
{numVotes: numVotes},
true
)