Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: cfcf0a1715
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (22 sloc) 1.042 kb
require 'test/unit'
require File.dirname(__FILE__) + '/../lib/snitch.rb'
require 'mocha'
require 'redgreen'
class << Test::Unit::TestCase
def test(name, &block)
test_name = :"test_#{name.gsub(' ','_')}"
raise ArgumentError, "#{test_name} is already defined" if self.instance_methods.include? test_name.to_s
define_method test_name, &block
end
def expect(expected_value, &block)
define_method :"test_#{caller.first.split("/").last}" do
assert_equal expected_value, instance_eval(&block)
end
end
end
Snitch::Config.config_file_path = File.expand_path(File.dirname(__FILE__) + '/snitch_config')
CONFIG = Snitch::Config::load
def create_subversion_repository_and_checkout
`svnadmin create test-subversion-repository && svn checkout file://$PWD/test-subversion-repository/ test-subversion-checkout && cd ./test-subversion-checkout && touch test && svn add test && svn commit -m 'Initial subversion import.'`
[`echo $PWD/test-subversion-repository`.chomp, `echo $PWD/test-subversion-checkout`.chomp]
end
Jump to Line
Something went wrong with that request. Please try again.