spec/spec_helper.rb in markaby-0.7.1 vs spec/spec_helper.rb in markaby-0.7.2
- old
+ new
@@ -1,8 +1,8 @@
require 'test/unit'
-require 'spec'
-require 'spec/interop/test'
+require 'test/unit/autorunner'
+require 'rspec'
$:.unshift File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'markaby'
require 'markaby/kernel_method'
@@ -34,8 +34,11 @@
module Test
module Unit
class TestCase
include TestHelpers
+ def self.it(name, &blk)
+ define_method("test_#{name}", &blk)
+ end
end
end
end