sonic-pi

https://github.com/sonic-pi-net/sonic-pi

C++

Code. Music. Live.

ActiveSupport::Testing::TimeHelpers#travel_back

Returns the current time back to its original state, by removing the stubs added by
`travel` and `travel_to`.

  Time.current # => Sat, 09 Nov 2013 15:34:49 EST -05:00
  travel_to Time.new(2004, 11, 24, 01, 04, 44)
  Time.current # => Wed, 24 Nov 2004 01:04:44 EST -05:00
  travel_back
  Time.current # => Sat, 09 Nov 2013 15:34:49 EST -05:00

Source | Google | Stack overflow

Edit

git clone [email protected]:sonic-pi-net/sonic-pi.git

cd sonic-pi

open app/server/ruby/vendor/activesupport-7.0.6/lib/active_support/testing/time_helpers.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ActiveSupport--Testing--TimeHelpers-travel_back-for-pr


# Commit to git

git add app/server/ruby/vendor/activesupport-7.0.6/lib/active_support/testing/time_helpers.rbgit commit -m "better docs for ActiveSupport::Testing::TimeHelpers#travel_back"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-ActiveSupport--Testing--TimeHelpers-travel_back-for-pr

hub pull-request


# Celebrate!