diff options
author | Musannif Zahir <mzahir@gmail.com> | 2014-03-28 20:11:58 +0800 |
---|---|---|
committer | Musannif Zahir <mzahir@gmail.com> | 2014-03-28 20:11:58 +0800 |
commit | 8753ce1a372a17464bfc118a84fa369a0e4a2285 (patch) | |
tree | 1d58db8331728f1beb4019c5a08819a9e42dbac3 /activemodel/test/cases/serializers | |
parent | 13b618f48d0c31184577c11cf8b89437b4bc1ce6 (diff) | |
download | rails-8753ce1a372a17464bfc118a84fa369a0e4a2285.tar.gz rails-8753ce1a372a17464bfc118a84fa369a0e4a2285.tar.bz2 rails-8753ce1a372a17464bfc118a84fa369a0e4a2285.zip |
Fix warning for overshadowing XML variable
Diffstat (limited to 'activemodel/test/cases/serializers')
-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 |