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.3.7 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.3.6 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.3.5 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.3.4 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.3.3 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.3.2 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.3.1 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classiccms-0.3.0 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
spork-0.9.2 lib/spork/test_framework/rspec.rb
classiccms-0.2.4.pre vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
spork-0.9.1 lib/spork/test_framework/rspec.rb
spork-1.0.0rc3 lib/spork/test_framework/rspec.rb
classicCMS-0.2.3 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classicCMS-0.2.2 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classicCMS-0.2.1 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classicCMS-0.2.0 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
classicCMS-0.1.2 vendor/bundle/gems/spork-0.9.0/lib/spork/test_framework/rspec.rb
spork-1.0.0rc2 lib/spork/test_framework/rspec.rb
spork-1.0.0rc2-x86-mswin32 lib/spork/test_framework/rspec.rb
spork-1.0.0rc2-x86-mingw32 lib/spork/test_framework/rspec.rb