We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eg: instead of
iex> Burette.Calendar.future %DateTime{year: 2017} iex> Burette.Calendar.future year: 2050 %DateTime{year: 2050}
do
iex> Burette.Calendar.future %DateTime{year: 2017} iex> Burette.Calendar.future year: 1..10 %DateTime{year: 2022}
As most tests that use relative past/future use so to check that the input date is inside a certain range, eg:
test "only adults can create accounts" do young_birth_date = DateTime.to_date(Burette.Calendar.past(year: 12..17)) adult_birth_date = DateTime.to_date(Burette.Calendar.past(year: 18..32)) refute Account.old_enough?(young_birth_date) assert Account.old_enough?(adult_birth_date) end
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Eg: instead of
do
As most tests that use relative past/future use so to check that the input date is inside a certain range, eg:
The text was updated successfully, but these errors were encountered: