Sha256: aea4aa31dd6dcffa4ca89f71595879b25e95ebab4dd472ace12b515858fb2cfc
Contents?: true
Size: 561 Bytes
Versions: 13
Compression:
Stored size: 561 Bytes
Contents
require 'spec/matchers' require 'spec/expectations' require 'spec/example' require 'spec/extensions' require 'spec/runner' require 'spec/adapters' require 'spec/version' if Object.const_defined?(:Test) require 'spec/interop/test' end module Spec class << self def run? Runner.options.examples_run? end def run return true if run? Runner.options.run_examples end def exit? !Object.const_defined?(:Test) || Test::Unit.run? end def spec_command? $0.split('/').last == 'spec' end end end
Version data entries
13 entries across 13 versions & 5 rubygems