Skip to content
Browse files

Changes spec for parent_id index as mongoid now stores the definition…

… as symbol
  • Loading branch information...
1 parent 4866a21 commit 27fc442b4e4a689507da28513e80999de91c39ab @benedikt committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/mongoid/tree_spec.rb
View
2 spec/mongoid/tree_spec.rb
@@ -10,7 +10,7 @@
a.macro.should eql(:has_many)
a.class_name.should eql('Node')
a.foreign_key.should eql('parent_id')
- Node.index_options.should have_key('parent_id' => 1)
+ Node.index_options.should have_key(:parent_id => 1)
end
it "should be referenced in one parent as inverse of children" do

0 comments on commit 27fc442

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