]> cat aescling's git repositories - mastodon.git/commit
Use be_within instead of eq for a to_f test match (#6275)
authorMike Burns <mburns@thoughtbot.com>
Wed, 17 Jan 2018 11:45:09 +0000 (06:45 -0500)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 17 Jan 2018 11:45:09 +0000 (12:45 +0100)
commitea75ae2d1fd987075f600fca66003e2f69cc6cca
treec3cd7737fd84d1ce1505a84521bd7d4f29d1dfeb
parentacb982fc6677e727980ac71f58e64d35e9576a3b
Use be_within instead of eq for a to_f test match (#6275)

Floating point values are notoriously hard to pin down, so use the
`be_within` matcher to verify the approximate value.
spec/services/precompute_feed_service_spec.rb