Skip to content

Instantly share code, notes, and snippets.

@floehopper
Created October 28, 2009 10:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save floehopper/220411 to your computer and use it in GitHub Desktop.
Save floehopper/220411 to your computer and use it in GitHub Desktop.
require 'test/unit'
require 'mocha'
class MyTest < Test::Unit::TestCase
def test_me
DateTime.stubs(:now).returns(DateTime.parse("2010-01-01T10:00:00"))
index = 0
100.times { index += 1 }
assert_equal 100, index
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment