From 7e7082a3bd78da46463692ae2d897483dbe1328e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonne=20Ha=C3=9F?= Date: Sun, 1 Sep 2013 16:01:10 +0200 Subject: [PATCH] Fix expectations for changes in generated HTML Just a minor change, supplied attributes now go before the standard ones --- lib/diaspora/taggable.rb | 2 +- spec/lib/diaspora/mentionable_spec.rb | 2 +- spec/shared_behaviors/taggable.rb | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/diaspora/taggable.rb b/lib/diaspora/taggable.rb index 13c9bb811..bbf725532 100644 --- a/lib/diaspora/taggable.rb +++ b/lib/diaspora/taggable.rb @@ -50,7 +50,7 @@ module Diaspora url_bit = '<3' end - %{#{pre}#{clickable}} + %{#{pre}#{clickable}} }.html_safe end end diff --git a/spec/lib/diaspora/mentionable_spec.rb b/spec/lib/diaspora/mentionable_spec.rb index 6e60804a0..5d9bdcc45 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 339556bf2..95b202352 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' => %{#<3}, - 'i #<3' => %{i #<3}, - 'i #<3 you' => %{i #<3 you}, + '#<3' => %{#<3}, + 'i #<3' => %{i #<3}, + 'i #<3 you' => %{i #<3 you}, '#<4' => '#<4', 'test#foo test' => 'test#foo test', 'test.#joo bar' => 'test.#joo bar',