AgileVentures / AgileVentures/sing_for_needs

Add time travel for tests

未关闭
#116 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Elixir
星标
4
派生
12
PR 合并指标
PR 指标待抓取

描述

## Expected Behavior

In rails there is an inbuilt time travel implementation, and other alternatives like time cop. This is really great for tests. Is there really an [alternative for elixir](https://stackoverflow.com/questions/32903786/time-travel-and-time-freezing-in-elixir)?
## Current Behavior

Dates are hard coded for tests hence these tests are soon failing for the wrong when we are past some of these days.

## Possible Solution

See [timex](https://github.com/bitwalker/timex) or [time machinex](https://github.com/shinyscorpion/time_machinex)

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。