spec/differential/calculator/group_spec.rb in differential-1.0.6 vs spec/differential/calculator/group_spec.rb in differential-1.1.0
- old
+ new
@@ -25,14 +25,14 @@
'aBC',
'1 AC.'
]
unsorted_ids.each do |unsorted_id|
- record = ::Differential::Parser::Record.new(id: unsorted_id,
+ record = ::Differential::Parser::Record.new(id: unsorted_id,
group_id: group_id,
- value: 1,
- data: {})
+ value: 1,
+ data: {})
group.add(record, ::Differential::Calculator::Side::A)
end
actual_ids = group.sorted_items.map { |i| i.id.value }
@@ -41,13 +41,13 @@
expect(actual_ids).to eq(expected_ids)
end
it 'should peek at data based on first item it finds' do
- record = ::Differential::Parser::Record.new(id: '1',
+ record = ::Differential::Parser::Record.new(id: '1',
group_id: group_id,
- value: 1,
- data: { name: 'Millie' })
+ value: 1,
+ data: { name: 'Millie' })
group.add(record, ::Differential::Calculator::Side::A)
expect(group.data_peek(:name)).to eq(record.data[:name])
end