Skip to content

Instantly share code, notes, and snippets.

@mostlyobvious
Created June 10, 2012 00:42
Show Gist options
  • Save mostlyobvious/2903247 to your computer and use it in GitHub Desktop.
Save mostlyobvious/2903247 to your computer and use it in GitHub Desktop.
require 'test/unit'
class AssertMatchTest < Test::Unit::TestCase
def test_assertion_count
assert_match /abc/, 'abc'
end
end
# 1.9.3
#
# Running tests:
#
# .
#
# Finished tests in 0.001630s, 613.3697 tests/s, 1226.7395 assertions/s.
#
# 1 tests, 2 assertions, 0 failures, 0 errors, 0 skips
# 1.9.2
#
# Loaded suite test
# Started
# .
# Finished in 0.000653 seconds.
#
# 1 tests, 1 assertions, 0 failures, 0 errors, 0 skips
#
# Test run options: --seed 23544
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment