Skip to content
Browse files

Fix warning for overshadowing XML variable

  • Loading branch information...
1 parent 13b618f commit 8753ce1a372a17464bfc118a84fa369a0e4a2285 @mzahir mzahir committed Mar 28, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 activemodel/test/cases/serializers/xml_serialization_test.rb
View
4 activemodel/test/cases/serializers/xml_serialization_test.rb
@@ -118,10 +118,10 @@ def setup
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

0 comments on commit 8753ce1

Please sign in to comment.
Something went wrong with that request. Please try again.