diff --git a/lib/stream/multi.rb b/lib/stream/multi.rb index b93fce915..7c34312fa 100644 --- a/lib/stream/multi.rb +++ b/lib/stream/multi.rb @@ -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) diff --git a/spec/lib/stream/multi_spec.rb b/spec/lib/stream/multi_spec.rb index 5bfa382ab..d60ffdd68 100644 --- a/spec/lib/stream/multi_spec.rb +++ b/spec/lib/stream/multi_spec.rb @@ -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