Sha256: c3dc50300844ce8ec3644f4ffc14198a6bc2c4e5baf233b84a3de52f8883722c
Contents?: true
Size: 588 Bytes
Versions: 6
Compression:
Stored size: 588 Bytes
Contents
# encoding: utf-8 require 'rubygems' require 'stringio' # stdlib require 'spec' # not 'minitest' describe 'a' do t('') do def ok(&block); block.call; end a = ok do true end # should be true not nil $stdout.puts "a is nil? #{a.nil?}" end end Minitest.run_specs $driver.public_methods(false).each do | m | MiniTest::Spec.class_eval do define_method m do | *args, &block | begin super(*args, &block) rescue NoMethodError $driver.send m, *args, &block if $driver.respond_to?(m) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems