Sha256: bae44e614732650adf2c00263542f7301ac3f4f064ac0464f2fde5928e747a45
Contents?: true
Size: 489 Bytes
Versions: 6
Compression:
Stored size: 489 Bytes
Contents
require 'spec_helper' unless RUBY_PLATFORM == 'opal' describe Volt::Persistors::ArrayStore do it 'should make a Cursor using :where_with_block when passing a block to where' do cursor = store._users.where({name: 'Bob'}) {|v| v.location == 'Bozeman' } expect(cursor.options[:query]).to eq( [ [ "where_with_block", {:name=>"Bob"}, ["c", ["c", "ident", "location"], "==", "Bozeman"]] ] ) end end end
Version data entries
6 entries across 6 versions & 1 rubygems