Sha256: 2d6e7b44f9472dea44d7f260ee0bfe8617a1afa0f29eed88dabc9e228eed13e5

Contents?: true

Size: 308 Bytes

Versions: 32

Compression:

Stored size: 308 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

describe CouchPotato::View::ViewQuery, 'query_view' do
  it "should not pass a key if conditions are empty" do
    db = mock 'db'
    db.should_receive(:view).with(anything, {})
    CouchPotato::View::ViewQuery.new(db, '', '', '', '').query_view!
  end
end

Version data entries

32 entries across 32 versions & 5 rubygems

Version Path
andrewtimberlake-couch_potato-0.2.8.1 spec/unit/view_query_spec.rb
andrewtimberlake-couch_potato-0.2.8.2 spec/unit/view_query_spec.rb
andrewtimberlake-couch_potato-0.2.8.3 spec/unit/view_query_spec.rb
andrewtimberlake-couch_potato-0.2.8.4 spec/unit/view_query_spec.rb
langalex-couch_potato-0.2.0 spec/unit/view_query_spec.rb
langalex-couch_potato-0.2.1 spec/unit/view_query_spec.rb
langalex-couch_potato-0.2.11 spec/unit/view_query_spec.rb
langalex-couch_potato-0.2.12 spec/unit/view_query_spec.rb
langalex-couch_potato-0.2.2 spec/unit/view_query_spec.rb
langalex-couch_potato-0.2.3 spec/unit/view_query_spec.rb
langalex-couch_potato-0.2.4 spec/unit/view_query_spec.rb
langalex-couch_potato-0.2.5 spec/unit/view_query_spec.rb
langalex-couch_potato-0.2.6 spec/unit/view_query_spec.rb
langalex-couch_potato-0.2.7 spec/unit/view_query_spec.rb
langalex-couch_potato-0.2.8 spec/unit/view_query_spec.rb
langalex-couch_potato-0.2.9 spec/unit/view_query_spec.rb
speedmax-couch_potato-0.2.0 spec/unit/view_query_spec.rb
speedmax-couch_potato-0.2.2 spec/unit/view_query_spec.rb
thefool808-couch_potato-0.2.7 spec/unit/view_query_spec.rb
couch_potato-0.2.24 spec/unit/view_query_spec.rb