test/manual/simple.rb in spec-5.0.19 vs test/manual/simple.rb in spec-5.3.3

- old
+ new

@@ -1,19 +1,14 @@ require 'rubygems' -require 'method_source' - -ary = [] - -class Test - def self.run &block - define_method :run_method do - self.instance_eval &block - end - - Test.new.run_method +require 'spec' +describe 'test' do + t 'simple spec test' do + 1.must_equal 1 end end -Test.run do - ary << 1 - puts 'complete' -end +Minitest.after_run do + puts 'minitest -- after run' +end + +trace_files = [File.expand_path(__FILE__)] +Minitest.run_specs({trace: trace_files}) \ No newline at end of file