Sha256: de1650b6c25cdeedd034b67e2baa34b6c98a712a0882d7cecee43499da0ea4eb

Contents?: true

Size: 1.09 KB

Versions: 6

Compression:

Stored size: 1.09 KB

Contents

require 'spec'

if Spec::Ruby.version.to_f >= 1.9
  gem 'test-unit','= 1.2.3'
end

require 'test/unit'

if Spec::Ruby.version.to_f >= 1.9
  require 'test/unit/version'
  if Test::Unit::VERSION > '1.2.3'
    raise <<-MESSAGE
#{'*' * 50}
Required: test-unit-1.2.3
Loaded:   test-unit-#{Test::Unit::VERSION}

With ruby-1.9, rspec-#{Spec::VERSION::STRING} requires test-unit-1.2.3, and
tries to force it with "gem 'test-unit', '= 1.2.3'" in:

  #{__FILE__}
  
Unfortunately, test-unit-#{Test::Unit::VERSION} was loaded anyway. While we are
aware of this bug we have not been able to track down its source.
Until we do, you have two alternatives:

* uninstall test-unit-#{Test::Unit::VERSION}
* use 'script/spec' instead of 'rake spec'
#{'*' * 50}
MESSAGE
  end
end


require 'test/unit/testresult'

require 'spec/interop/test/unit/testcase'
require 'spec/interop/test/unit/testsuite_adapter'
require 'spec/interop/test/unit/autorunner'
require 'spec/interop/test/unit/testresult'
require 'spec/interop/test/unit/ui/console/testrunner'

Spec::Example::ExampleGroupFactory.default(Test::Unit::TestCase)

Test::Unit.run = true

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
rspec-instructure-1.3.3 lib/spec/interop/test.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/rspec-1.3.2/lib/spec/interop/test.rb
rspec-1.3.2 lib/spec/interop/test.rb
rspec-1.3.1 lib/spec/interop/test.rb
rspec-1.3.1.rc lib/spec/interop/test.rb
rspec-1.3.0 lib/spec/interop/test.rb