summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-02-05 18:02:22 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2010-02-05 18:02:22 -0800
commit5ba21f0487c01ae13abbfdaeab8641a19f8bbee5 (patch)
tree1939e1a1e575eba42cf9ab3ea8d0d11a068e5568 /test
parentac8b4870f8088ca7003492aad293a3a7cfc92f33 (diff)
downloadpsych-5ba21f0487c01ae13abbfdaeab8641a19f8bbee5.zip
indentation level can be set
Diffstat (limited to 'test')
-rw-r--r--test/psych/test_emitter.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/psych/test_emitter.rb b/test/psych/test_emitter.rb
index 08da654..f4cf6b9 100644
--- a/test/psych/test_emitter.rb
+++ b/test/psych/test_emitter.rb
@@ -19,6 +19,12 @@ module Psych
assert_equal false, @emitter.canonical
end
+ def test_indentation_set
+ assert_equal 2, @emitter.indentation
+ @emitter.indentation = 5
+ assert_equal 5, @emitter.indentation
+ end
+
def test_emit_utf_8
@emitter.start_stream Psych::Nodes::Stream::UTF8
@emitter.start_document [], [], false