-
Notifications
You must be signed in to change notification settings - Fork 533
commit with custom author date #374
New issue
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
Conversation
6f48fdb
to
4c70c1c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once you move the file, you should be able to use @lib
in your tests.
tests/units/test_commit.rb
Outdated
set_file_paths | ||
end | ||
|
||
def test_add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be in tests/units/test_lib.rb
to ensure that things in Git::Lib
are tested where they are expected.
The test name makes more sense as #test_commit_with_date
in that file.
Thanks for the feedback, @tarcinil. It seems the project moved really forward since I've submitted the original PR - awesome! 🎉 I've updated the tests to fit the ones that previously existed. It even seems more clear to me, now. Let me know what you think 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the one thing and this should be good to go.
tests/units/test_lib.rb
Outdated
|
||
author_date = Time.new(2016, 8, 3, 17, 37, 0, "-03:00") | ||
|
||
previous = @lib.commit_data('HEAD') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this provide? I do not see it being used anywhere.
9cfe491
to
720e46e
Compare
Good catch! It was a leftover from a previous version of the test. |
Please rebase your branch and I’ll merge it. |
Signed-off-by: mgarciaisaia <mgarciaisaia+github@gmail.com>
720e46e
to
71beaf8
Compare
Sorry - hoped you could rebase it from here. There it is! 👍 |
Honor
git commit --date=...
flag.Re-submitting the stalled #315