summaryrefslogtreecommitdiff
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
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
-rw-r--r--ChangeLog5
-rw-r--r--test/psych/test_emitter.rb3
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 82bab4d456c..a5fb3c9bc7b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Oct 31 18:58:02 2014 Charles Oliver Nutter <headius@headius.com>
+
+ * test/psych/test_emitter.rb: Fix line_width test...initial value
+ is impl-specific and attr assignment always returns LHS.
+
Fri Oct 31 22:19:30 2014 Akinori MUSHA <knu@iDaemons.org>
* ext/digest/lib/digest.rb (Digest()): This function should now be
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