diff --git a/lib/diaspora/taggable.rb b/lib/diaspora/taggable.rb index 13c9bb81157a8bd67c50a86539f7b736d61ef51f..bbf725532ba8be18e3fb38d5fb09896ba1c462a8 100644 --- a/lib/diaspora/taggable.rb +++ b/lib/diaspora/taggable.rb @@ -50,7 +50,7 @@ module Diaspora url_bit = '<3' end - %{#{pre}<a href="/tags/#{url_bit}" class="tag">#{clickable}</a>} + %{#{pre}<a class="tag" href="/tags/#{url_bit}">#{clickable}</a>} }.html_safe end end diff --git a/spec/lib/diaspora/mentionable_spec.rb b/spec/lib/diaspora/mentionable_spec.rb index 6e60804a0980425a35fcc920bcf61404d8a5c094..5d9bdcc459b9d6af6893675e2f91216746576e14 100644 --- a/spec/lib/diaspora/mentionable_spec.rb +++ b/spec/lib/diaspora/mentionable_spec.rb @@ -48,7 +48,7 @@ STR fmt_msg = Diaspora::Mentionable.format(@status_msg.raw_message, @people) fmt_msg.should_not include(p.first_name) - fmt_msg.should include(">", "<", "'") # ">", "<", "'" + fmt_msg.should include(">", "<", "'") # ">", "<", "'" end end diff --git a/spec/shared_behaviors/taggable.rb b/spec/shared_behaviors/taggable.rb index 339556bf2bcec921e716253f6d1f9f47ff7245df..95b202352168499aa451982b4d1b6f7e68cf47f8 100644 --- a/spec/shared_behaviors/taggable.rb +++ b/spec/shared_behaviors/taggable.rb @@ -52,9 +52,9 @@ shared_examples_for "it is taggable" do '#12345 tag' => "#{tag_link('12345')} tag", '#12cde tag' => "#{tag_link('12cde')} tag", '#abc45 tag' => "#{tag_link('abc45')} tag", - '#<3' => %{<a href="/tags/<3" class="tag">#<3</a>}, - 'i #<3' => %{i <a href="/tags/<3" class="tag">#<3</a>}, - 'i #<3 you' => %{i <a href="/tags/<3" class="tag">#<3</a> you}, + '#<3' => %{<a class="tag" href="/tags/<3">#<3</a>}, + 'i #<3' => %{i <a class="tag" href="/tags/<3">#<3</a>}, + 'i #<3 you' => %{i <a class="tag" href="/tags/<3">#<3</a> you}, '#<4' => '#<4', 'test#foo test' => 'test#foo test', 'test.#joo bar' => 'test.#joo bar',