Skip to content

Commit

Permalink
moved lib to the base of the design document
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric committed Jun 21, 2013
1 parent 1d27694 commit 7cf6cdd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/unit/view_query_spec.rb
Expand Up @@ -16,7 +16,10 @@

db.should_receive(:save_doc).with(
'views' => {'view' => {'map' => '<map_code>', 'reduce' => '<reduce_code>'}, 'lib' => {'test' => '<lib_code>'}},
'lists' => {}, "_id" => "_design/design", "language" => "javascript")
'lists' => {},
"_id" => "_design/design",
"language" => "javascript"
)

CouchPotato::View::ViewQuery.new(db, 'design', {:view => {:map => '<map_code>', :reduce => '<reduce_code>'}}, nil, {'test' => "<lib_code>"}).query_view!
end
Expand Down

0 comments on commit 7cf6cdd

Please sign in to comment.