From 1adfb9213576bd4a548a66bb46e2a2272e15e48d Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Mon, 1 Feb 2010 04:12:01 -0200 Subject: Deleted all references to ActionView::SafeBuffer in favor of ActiveSupport::SafeBuffer Signed-off-by: Yehuda Katz --- activesupport/test/safe_buffer_test.rb | 41 ++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 activesupport/test/safe_buffer_test.rb (limited to 'activesupport/test/safe_buffer_test.rb') diff --git a/activesupport/test/safe_buffer_test.rb b/activesupport/test/safe_buffer_test.rb new file mode 100644 index 0000000000..bf61f9e58c --- /dev/null +++ b/activesupport/test/safe_buffer_test.rb @@ -0,0 +1,41 @@ +require 'abstract_unit' + +class SafeBufferTest < ActiveSupport::TestCase + def setup + @buffer = ActiveSupport::SafeBuffer.new + end + + test "Should look like a string" do + assert @buffer.is_a?(String) + assert_equal "", @buffer + end + + test "Should escape a raw string which is passed to them" do + @buffer << "