spec/unit/relation_spec.rb in rom-sql-0.6.0.beta1 vs spec/unit/relation_spec.rb in rom-sql-0.6.0.rc1
- old
+ new
@@ -36,12 +36,11 @@
end
end
describe '#map' do
it 'yields tuples' do
- result = []
- users.map { |tuple| result << tuple }
- expect(result).to eql([{ id: 1, name: 'Piotr' }])
+ result = users.map { |tuple| tuple[:name] }
+ expect(result).to eql(%w(Piotr))
end
end
describe '#inner_join' do
it 'joins relations using inner join' do