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.5.16 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.5.15 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.5.14 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.5.13 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.5.12 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.5.11 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.5.10 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.5.9 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.5.8 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.5.7 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.5.6 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.5.5 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.5.2 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.5.1 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.5.0 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.4.2 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.4.1 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.4.0 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.3.9 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.3.8 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb