Sha256: 007966a9b834e83b7f5485a458bc179859ea5011d1d56e78e27ddc175b01eaad

Contents?: true

Size: 494 Bytes

Versions: 9

Compression:

Stored size: 494 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
  end
end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
jnstq-acts_as_sms-0.1.0 test/vendor/plugins/rspec/lib/spec.rb
jnstq-acts_as_sms-0.1.1 test/vendor/plugins/rspec/lib/spec.rb
jnstq-acts_as_sms-0.1.3 test/vendor/plugins/rspec/lib/spec.rb
jnstq-acts_as_sms-0.1.4 test/vendor/plugins/rspec/lib/spec.rb
pictrails-0.5.0 vendor/plugins/rspec/lib/spec.rb
rspec-1.1.7 lib/spec.rb
rspec-1.1.6 lib/spec.rb
rspec-1.1.5 lib/spec.rb
rspec-1.1.8 lib/spec.rb