Sha256: 8cd5111d22a008c1b444578ee4f2fbf91f07322495b4ad05b945847c1c1c8b58

Contents?: true

Size: 1.08 KB

Versions: 26

Compression:

Stored size: 1.08 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-2.0.3
* 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

26 entries across 26 versions & 9 rubygems

Version Path
hubbub-0.0.11 lib/vendor/plugins/rspec/lib/spec/interop/test.rb
hubbub-0.0.10 lib/vendor/plugins/rspec/lib/spec/interop/test.rb
hubbub-0.0.9 lib/vendor/plugins/rspec/lib/spec/interop/test.rb
hubbub-0.0.8 lib/vendor/plugins/rspec/lib/spec/interop/test.rb
hubbub-0.0.6 lib/vendor/plugins/rspec/lib/spec/interop/test.rb
simple-templater-0.0.1.4 gems/gems/rspec-1.2.9/lib/spec/interop/test.rb
media-path-0.1.2 vendor/rspec/lib/spec/interop/test.rb
simple-templater-0.0.1.3 vendor/rspec/lib/spec/interop/test.rb
pupu-0.0.2.pre vendor/rspec/lib/spec/interop/test.rb
media-path-0.1.1.pre vendor/rspec/lib/spec/interop/test.rb
simple-templater-0.0.1.2 vendor/rspec/lib/spec/interop/test.rb
media-path-0.1.1 vendor/rspec/lib/spec/interop/test.rb
simple-templater-0.0.1.1 vendor/rspec/lib/spec/interop/test.rb
pupu-0.0.2 vendor/rspec/lib/spec/interop/test.rb
rango-0.0.6 vendor/rspec/lib/spec/interop/test.rb
rango-0.1.pre vendor/rspec/lib/spec/interop/test.rb
pupu-0.0.1 vendor/rspec/lib/spec/interop/test.rb
media-path-0.1 vendor/rspec/lib/spec/interop/test.rb
simple-templater-0.0.1 vendor/rspec/lib/spec/interop/test.rb
middleman-0.10.17 vendor/gems/gems/rspec-1.2.9/lib/spec/interop/test.rb