Sha256: 46f78cdda21e7d311325bdc6886433cf81f3b32ba27fb209c7f8cb05e19e1f1c

Contents?: true

Size: 799 Bytes

Versions: 6

Compression:

Stored size: 799 Bytes

Contents

module Specjour
  module Rspec
    def self.load_rspec1
      require 'spec'
      require 'spec/runner/formatter/base_text_formatter'

      require 'specjour/rspec/distributed_formatter'
      require 'specjour/rspec/final_report'
      require 'specjour/rspec/marshalable_exception'
      require 'specjour/rspec/preloader'
      require 'specjour/rspec/runner'
    end

    def self.load_rspec2
      require 'rspec/core'
      ::Rspec::Core::Runner.disable_autorun!

      require 'specjour/rspec/marshalable_exception'
      require 'specjour/rspec/preloader'
      require 'specjour/rspec2/distributed_formatter'
      require 'specjour/rspec2/final_report'
      require 'specjour/rspec2/runner'
    end

    begin
      load_rspec2
    rescue LoadError
      load_rspec1
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
specjour-0.3.0.rc8 lib/specjour/rspec.rb
specjour-0.3.0.rc7 lib/specjour/rspec.rb
specjour-0.3.0.rc6 lib/specjour/rspec.rb
specjour-0.3.0.rc5 lib/specjour/rspec.rb
specjour-0.3.0.rc4 lib/specjour/rspec.rb
specjour-0.3.0.rc3 lib/specjour/rspec.rb