Sha256: 7e0698a141ed1cc657cc46547fa25668ef1035c36c6d5c061de7c5ba948cd906

Contents?: true

Size: 453 Bytes

Versions: 72

Compression:

Stored size: 453 Bytes

Contents

class Spork::TestFramework::RSpec < Spork::TestFramework
  DEFAULT_PORT = 8989
  HELPER_FILE = File.join(Dir.pwd, "spec/spec_helper.rb")

  def run_tests(argv, stderr, stdout)
    if rspec1?
      ::Spec::Runner::CommandLine.run(
        ::Spec::Runner::OptionParser.parse(argv, stderr, stdout)
      )
    else
      ::RSpec::Core::CommandLine.new(argv).run(stderr, stdout)
    end
  end

  def rspec1?
    defined?(Spec) && !defined?(RSpec)
  end
end

Version data entries

72 entries across 72 versions & 3 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.7.4 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.7.3 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
spork-1.0.0rc4 lib/spork/test_framework/rspec.rb
spork-1.0.0rc4-x86-mswin32 lib/spork/test_framework/rspec.rb
spork-1.0.0rc4-x86-mingw32 lib/spork/test_framework/rspec.rb
classiccms-0.7.2 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.7.1 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.7.0 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.6.9 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.6.8 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.6.7 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.6.6 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.6.5 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.6.4 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.6.3 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.6.2 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.6.1 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.6.0 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.5.17 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb