Sha256: 1c3a90635b51ce657163b6198ec0a0652dbcbde049260dc4653a4be71dc35940

Contents?: true

Size: 308 Bytes

Versions: 7

Compression:

Stored size: 308 Bytes

Contents

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

describe CouchTomato::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, {})
    CouchTomato::View::ViewQuery.new(db, '', '', '', '').query_view!
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
couch_tomato-0.2.0 spec/unit/view_query_spec.rb
couch_tomato-0.1.5 spec/unit/view_query_spec.rb
couch_tomato-0.1.4 spec/unit/view_query_spec.rb
couch_tomato-0.1.3 spec/unit/view_query_spec.rb
couch_tomato-0.1.2 spec/unit/view_query_spec.rb
couch_tomato-0.1.1 spec/unit/view_query_spec.rb
couch_tomato-0.1.0 spec/unit/view_query_spec.rb