spec/unit/relation_spec.rb in rom-sql-0.3.0 vs spec/unit/relation_spec.rb in rom-sql-0.3.1
- old
+ new
@@ -16,32 +16,32 @@
describe '#project' do
it 'projects the dataset using new column names' do
projected = users.sorted.project(:name)
expect(projected.header).to match_array([:name])
- expect(projected.to_a).to eql([{ name: 'Piotr'}])
+ expect(projected.to_a).to eql([{ name: 'Piotr' }])
end
end
describe '#rename' do
it 'projects the dataset using new column names' do
renamed = users.sorted.rename(id: :user_id, name: :user_name)
- expect(renamed.to_a).to eql([{ user_id: 1, user_name: 'Piotr'}])
+ expect(renamed.to_a).to eql([{ user_id: 1, user_name: 'Piotr' }])
end
end
describe '#prefix' do
it 'projects the dataset using new column names' do
prefixed = users.sorted.prefix(:user)
- expect(prefixed.to_a).to eql([{ user_id: 1, user_name: 'Piotr'}])
+ expect(prefixed.to_a).to eql([{ user_id: 1, user_name: 'Piotr' }])
end
it 'uses singularized table name as the default prefix' do
prefixed = users.sorted.prefix
- expect(prefixed.to_a).to eql([{ user_id: 1, user_name: 'Piotr'}])
+ expect(prefixed.to_a).to eql([{ user_id: 1, user_name: 'Piotr' }])
end
end
describe '#qualified_columns' do
it 'returns qualified column names' do