Skip to content
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

Bugfix: Ensure creation time is set when records are created #112

Merged
merged 1 commit into from
Apr 20, 2016
Merged

Bugfix: Ensure creation time is set when records are created #112

merged 1 commit into from
Apr 20, 2016

Conversation

clemens
Copy link
Contributor

@clemens clemens commented Dec 14, 2015

According go the API docs, pretty much every record in the Braintree API has a created_at field – so we should have them as well.

According go the API docs, pretty much every record in the Braintree API has a created_at field – so we should have them as well.
transaction = Braintree::Transaction.refund(create_id('foobar'), '1').transaction

creation_time = Time.parse(transaction.created_at)
expect(creation_time).to be_within(1).of(Time.now)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not use Time.now without zone. Use one of Time.zone.now, Time.now.current, Time.now.in_time_zone, Time.now.utc, Time.now.getlocal, Time.now.iso8601, Time.now.jisx0301, Time.now.rfc3339, Time.now.to_i, Time.now.to_f instead.

@clemens
Copy link
Contributor Author

clemens commented Jan 4, 2016

Any updates?

@birarda birarda merged commit 630217c into highfidelity:master Apr 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants