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

Version Path
dchelimsky-rspec-1.1.10 lib/spec.rb
merb-core-1.1.3 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec.rb
merb-core-1.1.2 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec.rb
merb-core-1.1.1 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec.rb
merb-core-1.1.0 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec.rb
merb-core-1.1.0.rc1 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec.rb
merb-core-1.1.0.pre spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec.rb
mack-0.8.2 lib/gems/rspec-1.1.11/lib/spec.rb
rspec-1.1.10 lib/spec.rb
rspec-1.1.11 lib/spec.rb
rspec-1.1.9 lib/spec.rb
typo-5.1.98 vendor/plugins/rspec/lib/spec.rb
typo-5.2 vendor/plugins/rspec/lib/spec.rb