Sha256: 29a0bbf2b9de12e92d03bf9506744d75e94a07ef29762148841d57aa3488654e
Contents?: true
Size: 376 Bytes
Versions: 25
Compression:
Stored size: 376 Bytes
Contents
RSpec.describe ROM::Relation, '#map' do subject(:relation) { container.relations.users } include_context 'users and tasks' with_adapters do it 'yields tuples' do result = relation.map { |tuple| tuple[:name] } expect(result).to eql(%w(Jane Joe)) end it 'plucks value' do expect(relation.map(:name)).to eql(%w(Jane Joe)) end end end
Version data entries
25 entries across 25 versions & 1 rubygems