Skip to content

Commit

Permalink
updated spec to the new blueprint conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
gernotkogler committed Dec 13, 2011
1 parent b5ff7a6 commit 8b90419
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/xapian_db/indexer_spec.rb
Expand Up @@ -119,13 +119,13 @@
end

it "calls the natural sort order block if present" do
XapianDb::DocumentBlueprint.setup(IndexedObject) do |blueprint|
XapianDb::DocumentBlueprint.setup(:IndexedObject) do |blueprint|
blueprint.attribute :id
blueprint.natural_sort_order do
"fixed"
end
end
blueprint = XapianDb::DocumentBlueprint.blueprint_for(IndexedObject)
blueprint = XapianDb::DocumentBlueprint.blueprint_for(:IndexedObject)
obj = IndexedObject.new(1)
indexer = XapianDb::Indexer.new(@db, @blueprint)
doc = indexer.build_document_for(obj)
Expand Down

0 comments on commit 8b90419

Please sign in to comment.