+ def test_element_strikethrough
+ node = create(:node, :with_history, :version => 2)
+ node_v1 = node.old_nodes.find_by(:version => 1)
+ node_v2 = node.old_nodes.find_by(:version => 2)
+ node_v1.redact!(create(:redaction))
+
+ normal_output = element_strikethrough(node_v2) { "test" }
+ assert_equal "test", normal_output
+
+ redacted_output = element_strikethrough(node_v1) { "test" }
+ assert_equal "<s>test</s>", redacted_output
+
+ deleted_output = element_strikethrough(create(:node, :deleted)) { "test" }
+ assert_equal "<s>test</s>", deleted_output
+ end
+