Skip to content

Instantly share code, notes, and snippets.

@qnm
Created June 12, 2015 11:37
Show Gist options
  • Save qnm/63799aeb77cb6b9157f7 to your computer and use it in GitHub Desktop.
Save qnm/63799aeb77cb6b9157f7 to your computer and use it in GitHub Desktop.
begin
require 'bundler/inline'
rescue LoadError => e
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler'
raise e
end
gemfile(true) do
source 'https://rubygems.org'
gem 'activesupport', '4.2.1'
end
require 'active_support/core_ext/time'
require 'minitest/autorun'
# Ensure backward compatibility with Minitest 4
Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test)
class BugTest < Minitest::Test
def test_missing_require
time = Time.parse('3030-01-01 00:00:00')
time.advance(:months => 1)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment