AgileVentures / AgileVentures/sing_for_needs

Add time travel for tests

オープン
#116 コメント 0 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。