Fix floating point difference with Travis
This commit is contained in:
parent
a00711b223
commit
ac484315cc
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue