Sha256: ed32a7f4837995ae8fa11191fb1e58cb7b3482a4e9b3c7c35ec5857667002ef8
Contents?: true
Size: 503 Bytes
Versions: 6
Compression:
Stored size: 503 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
6 entries across 6 versions & 1 rubygems