Showing differences between <%= compact_time @thispage.updated_at %> (<%= link_to_user @thispage.updater %>) and <%= compact_time @otherpage.updated_at %> (<%= link_to_user @otherpage.updater %>)
The artist requested removal of this page.
diff --git a/config/initializers/diffy.rb b/config/initializers/diffy.rb new file mode 100644 index 000000000..b9c589d96 --- /dev/null +++ b/config/initializers/diffy.rb @@ -0,0 +1,3 @@ +Rails.configuration.to_prepare do + Diffy::Diff.prepend DiffyNoSubprocess +end diff --git a/test/helpers/text_helper_test.rb b/test/helpers/text_helper_test.rb new file mode 100644 index 000000000..8371f8040 --- /dev/null +++ b/test/helpers/text_helper_test.rb @@ -0,0 +1,36 @@ +require "test_helper" + +class TextHelperTest < ActionView::TestCase + should "not call diff" do + Open3.expects(:capture3).never + text_diff("abc", "def") + end + + should "strip the header info" do + expected = <<~HTML.chomp +-
+
abc
+ - def +
-
+
<s></s>
+ - <b></b> +