class Spork::TestFramework::RSpec

Constants

DEFAULT_PORT
HELPER_FILE

Public Instance Methods

rspec1?() click to toggle source
# File lib/spork/test_framework/rspec.rb, line 15
def rspec1?
  defined?(Spec) && !defined?(RSpec)
end
run_tests(argv, stderr, stdout) click to toggle source
# File lib/spork/test_framework/rspec.rb, line 5
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