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

Version Path
volt-0.8.14 spec/tasks/live_query_spec.rb
volt-0.8.13 spec/tasks/live_query_spec.rb
volt-0.8.11 spec/tasks/live_query_spec.rb
volt-0.8.10 spec/tasks/live_query_spec.rb
volt-0.8.9 spec/tasks/live_query_spec.rb
volt-0.8.8 spec/tasks/live_query_spec.rb
volt-0.8.7 spec/tasks/live_query_spec.rb
volt-0.8.6 spec/tasks/live_query_spec.rb
volt-0.8.5 spec/tasks/live_query_spec.rb
volt-0.8.4 spec/tasks/live_query_spec.rb
volt-0.8.3 spec/tasks/live_query_spec.rb
volt-0.8.2 spec/tasks/live_query_spec.rb
volt-0.8.1 spec/tasks/live_query_spec.rb
volt-0.8.0 spec/tasks/live_query_spec.rb
volt-0.7.23 spec/tasks/live_query_spec.rb
volt-0.7.22 spec/tasks/live_query_spec.rb
volt-0.7.21 spec/tasks/live_query_spec.rb
volt-0.7.20 spec/tasks/live_query_spec.rb
volt-0.7.19 spec/tasks/live_query_spec.rb
volt-0.7.18 spec/tasks/live_query_spec.rb