diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-03-28 14:36:01 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-03-28 14:36:01 +0100 |
commit | 557ac34fc02d67c1202708f679745e1283cf9e11 (patch) | |
tree | 1d58db8331728f1beb4019c5a08819a9e42dbac3 | |
parent | 13b618f48d0c31184577c11cf8b89437b4bc1ce6 (diff) | |
parent | 8753ce1a372a17464bfc118a84fa369a0e4a2285 (diff) | |
download | rails-557ac34fc02d67c1202708f679745e1283cf9e11.tar.gz rails-557ac34fc02d67c1202708f679745e1283cf9e11.tar.bz2 rails-557ac34fc02d67c1202708f679745e1283cf9e11.zip |
Merge pull request #14515 from mzahir/fix_xml_warning
Fix warning for overshadowing XML variable
-rw-r--r-- | activemodel/test/cases/serializers/xml_serialization_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/test/cases/serializers/xml_serialization_test.rb b/activemodel/test/cases/serializers/xml_serialization_test.rb index 73f316d5e0..5db14c8157 100644 --- a/activemodel/test/cases/serializers/xml_serialization_test.rb +++ b/activemodel/test/cases/serializers/xml_serialization_test.rb @@ -118,10 +118,10 @@ class XmlSerializationTest < ActiveModel::TestCase end test "should include yielded additions" do - xml = @contact.to_xml do |xml| + xml_output = @contact.to_xml do |xml| xml.creator "David" end - assert_match %r{<creator>David</creator>}, xml + assert_match %r{<creator>David</creator>}, xml_output end test "should serialize string" do |