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
couch_potato-0.2.23 spec/unit/view_query_spec.rb
couch_potato-0.2.22 spec/unit/view_query_spec.rb
couch_potato-0.2.21 spec/unit/view_query_spec.rb
couch_potato-0.2.20 spec/unit/view_query_spec.rb
couch_potato-0.2.19 spec/unit/view_query_spec.rb
couch_potato-0.2.18 spec/unit/view_query_spec.rb
couch_potato-0.2.17 spec/unit/view_query_spec.rb
couch_potato-0.2.16 spec/unit/view_query_spec.rb
couch_potato-0.2.15 spec/unit/view_query_spec.rb
couch_potato-0.2.14 spec/unit/view_query_spec.rb
couch_potato-0.2.13 spec/unit/view_query_spec.rb
couch_potato-0.2.12 spec/unit/view_query_spec.rb