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

Commit

Permalink
[TEST] Add pending test for Index#bulk_store
Browse files Browse the repository at this point in the history
  • Loading branch information
karmi committed Apr 30, 2011
1 parent c89b856 commit 5878d21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/slingshot/index.rb
Expand Up @@ -82,6 +82,7 @@ def bulk_store documents
id = case
when document.is_a?(Hash) then document[:id] || document['id']
when document.respond_to?(:id) && document.id != document.object_id then document.id
# TODO: Raise error when no id present
end
$VERBOSE = old_verbose

Expand Down
4 changes: 4 additions & 0 deletions test/unit/index_test.rb
Expand Up @@ -265,6 +265,10 @@ class MyDocument;end; document = MyDocument.new
end
end

should_eventually "raise exception when collection item does not have ID" do
# TODO: raise exception when collection item does not have ID
end

end

context "when importing" do
Expand Down

0 comments on commit 5878d21

Please sign in to comment.