Fix floating point difference with Travis

This commit is contained in:
Wout Schellaert 2018-12-13 20:59:52 +01:00
parent a00711b223
commit ac484315cc

View file

@ -157,7 +157,8 @@ describe User do
end
@user.reload
num_orders = Rails.application.config.frecency_num_orders
expect(@user.frecency).to eq(10025915)
# On Travis the result is 10025938 cause floating points
expect(@user.frecency).to be_within(50).of(10025915)
end
end
end