Permalink
Browse files

Fix failing spec on ActiveRecord 3.1

  • Loading branch information...
bensie committed Sep 4, 2011
1 parent 0e8d609 commit dcdfbed7b0571ac4971a297af9727a9de72ae5c6
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/orm/activerecord_spec.rb
@@ -97,7 +97,7 @@ class Event < ActiveRecord::Base; end # setup a basic AR class for testing
it "should return valid XML when to_xml is called when image is nil" do
@event[:image].should be_nil
- Hash.from_xml(@event.to_xml)["event#{$arclass}"].should == {"textfile"=>nil, "foo"=>nil}
+ Hash.from_xml(@event.to_xml)["event#{$arclass}"].except("id").should == {"textfile"=>nil, "foo"=>nil}
end
# FIXME to_xml should work like to_json

0 comments on commit dcdfbed

Please sign in to comment.