Commit f345e82
Fix comparison of times for
Prior to 4.0.0 we used `to_f` to ensure parity of precision with Rails internals
this was lost when we added support for date matching, but this restores
it for Time objects only.
Co-authored-by: Markus Doits <[email protected]>#at in job matchers.1 parent bef9822 commit f345e82
File tree
2 files changed
+13
-2
lines changed- lib/rspec/rails/matchers
- spec/rspec/rails/matchers
2 files changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
219 | 226 | | |
220 | 227 | | |
221 | 228 | | |
| |||
0 commit comments