summaryrefslogtreecommitdiff
path: root/test/psych
diff options
context:
space:
mode:
authorheadius <headius@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-31 19:37:38 +0000
committerheadius <headius@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-31 19:37:38 +0000
commit08d0b5700073bd5d872007c8aacad5900dfaed72 (patch)
treee36c4e3d36457c8791dd753d228c9ced41418504 /test/psych
parentc02fa39463a0c6bf698b01bc610135604aca2ff4 (diff)
* test/psych/test_emitter.rb: Fix line_width test...initial value
is impl-specific and attr assignment always returns LHS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/psych')
-rw-r--r--test/psych/test_emitter.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/psych/test_emitter.rb b/test/psych/test_emitter.rb
index 0554ae5f85e..1c96c123796 100644
--- a/test/psych/test_emitter.rb
+++ b/test/psych/test_emitter.rb
@@ -11,8 +11,7 @@ module Psych
end
def test_line_width
- assert_equal 0, @emitter.line_width
- assert_equal 10, @emitter.line_width = 10
+ @emitter.line_width = 10
assert_equal 10, @emitter.line_width
end