Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Commit

Permalink
[dm-serializer] Remove const before redefining it to avoid warnings w…
Browse files Browse the repository at this point in the history
…hen running specs
  • Loading branch information
xaviershay committed Jan 2, 2009
1 parent 9cfcb4f commit 62b3641
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/public/to_xml_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def cast(value, type)
value
end
end.new
DataMapper::Serialize::XMLSerializers.instance_eval { remove_const('SERIALIZER') }
DataMapper::Serialize::XMLSerializers::SERIALIZER = DataMapper::Serialize::XMLSerializers::const_get(lib)
end

Expand Down

0 comments on commit 62b3641

Please sign in to comment.