Merge pull request #2272 from Pistos/issue-2266-new-here-capitalization
Change #newhere prefill to #NewHere .
This commit is contained in:
commit
43b34d5290
2 changed files with 3 additions and 3 deletions
|
|
@ -31,7 +31,7 @@ class Stream::Multi < Stream::Base
|
|||
#emits an enum of the groups which the post appeared
|
||||
# :spotlight, :aspects, :tags, :mentioned
|
||||
def post_from_group(post)
|
||||
streams_included.collect do |source|
|
||||
streams_included.collect do |source|
|
||||
is_in?(source, post)
|
||||
end.compact
|
||||
end
|
||||
|
|
@ -49,7 +49,7 @@ class Stream::Multi < Stream::Base
|
|||
#
|
||||
# @return [String]
|
||||
def publisher_prefill
|
||||
prefill = I18n.t("shared.publisher.new_user_prefill.hello", :new_user_tag => "newhere")
|
||||
prefill = I18n.t("shared.publisher.new_user_prefill.hello", :new_user_tag => "NewHere")
|
||||
if self.user.followed_tags.size > 0
|
||||
tag_string = self.user.followed_tags.map{|t| "##{t.name}"}.to_sentence
|
||||
prefill << I18n.t("shared.publisher.new_user_prefill.i_like", :tags => tag_string)
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ describe Stream::Multi do
|
|||
end
|
||||
|
||||
it 'returns includes new user hashtag' do
|
||||
@stream.send(:publisher_prefill).include?("#newhere").should be_true
|
||||
@stream.send(:publisher_prefill).include?("#NewHere").should be_true
|
||||
end
|
||||
|
||||
it 'includes followed hashtags' do
|
||||
|
|
|
|||
Loading…
Reference in a new issue