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

Version Path
volt-0.6.5 spec/tasks/live_query_spec.rb
volt-0.6.4 spec/tasks/live_query_spec.rb
volt-0.6.3 spec/tasks/live_query_spec.rb
volt-0.6.2 spec/tasks/live_query_spec.rb
volt-0.6.1 spec/tasks/live_query_spec.rb
volt-0.6.0 spec/tasks/live_query_spec.rb