Skip to content

Instantly share code, notes, and snippets.

@jstorimer
Created June 17, 2011 20:27
Show Gist options
  • Save jstorimer/1032255 to your computer and use it in GitHub Desktop.
Save jstorimer/1032255 to your computer and use it in GitHub Desktop.
require 'rake/testtask'
Rake::TestTask.new('tester') do |t|
t.test_files = 'test/*.rb'
end
require 'test/unit'
class Spacer
def go
puts namespace
end
def method_missing(*)
puts 'ok'
end
end
class TestIt < Test::Unit::TestCase
def test_it
Spacer.new.go
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment