Sha256: 85e8fde4242281923b7b46508051436c2ced090d99149181140d51093c4c43e3
Contents?: true
Size: 970 Bytes
Versions: 52
Compression:
Stored size: 970 Bytes
Contents
require 'rho_stubs' require 'mspec' require 'mspec/utils/script' require 'mspec/version' class SpecRunner < MSpecScript def initialize super config[:files] = [] # turn on exception backtrace #MSpec.backtrace = false #Run all the framework specs we can from the spec app spec_folder = File.expand_path(File.dirname(__FILE__) + "/../../spec/framework_spec/app/spec") config[:files] << spec_folder + '/rhoerror_spec.rb' config[:files] << spec_folder + '/rhoruby_spec.rb' config[:files] << spec_folder + '/bsearch_spec.rb' config[:files] << spec_folder + '/find_spec.rb' end def run MSpec.register_files config[:files] MSpec.process MSpec.exit_code end end runner = SpecRunner.new retcode = runner.run puts "\nMSpec version: "+MSpec::VERSION puts "\nTotal: " + MSpec.count.to_s puts "Passed: " + (MSpec.count - MSpec.exc_count).to_s puts "Failed: " + MSpec.exc_count.to_s
Version data entries
52 entries across 52 versions & 2 rubygems