aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activemodel/test/cases/serializers/xml_serialization_test.rb4
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