Sha256: e0e29ebc329367b35365ab8e9497780cc5f4a8f1181fb7141c02b6a5a7a1cb9b
Contents?: true
Size: 480 Bytes
Versions: 37
Compression:
Stored size: 480 Bytes
Contents
if RUBY_PLATFORM != 'opal' describe "LiveQuery" do before do load File.join(File.dirname(__FILE__), "../../app/volt/tasks/live_query/live_query.rb") end it "should run a query" do pool = double('pool') data_store = double('data store') expect(data_store).to receive(:query).with('_items', {}).and_return([ {'_id' => 0, '_name' => 'one'} ]) live_query = LiveQuery.new(pool, data_store, '_items', {}) end end end
Version data entries
37 entries across 37 versions & 1 rubygems