spec/models/rating/update_rating_spec.rb in rating-0.3.0 vs spec/models/rating/update_rating_spec.rb in rating-0.4.0
- old
+ new
@@ -8,11 +8,11 @@
context 'with no scopeable' do
it 'updates the rating data of the given resource' do
record = described_class.find_by(resource: article_1)
- expect(record.average).to eq 50.50000000000001
- expect(record.estimate).to eq 42.50000000000001
+ expect(record.average).to eq 50.5
+ expect(record.estimate).to eq 42.5
expect(record.sum).to eq 101
expect(record.total).to eq 2
end
end