Skip to content

Commit

Permalink
Merge pull request rails#14515 from mzahir/fix_xml_warning
Browse files Browse the repository at this point in the history
Fix warning for overshadowing XML variable
  • Loading branch information
senny committed Mar 28, 2014
2 parents 13b618f + 8753ce1 commit 557ac34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activemodel/test/cases/serializers/xml_serialization_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 557ac34

Please sign in to comment.