Browse files

rubinius stdlib patch

  • Loading branch information...
1 parent eb3e8e5 commit b2734a6fd25e4fd972c2499b65efc9b936fb7a43 @JonRowe JonRowe committed Dec 9, 2013
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/rspec/rails/adapters.rb
View
8 lib/rspec/rails/adapters.rb
@@ -8,7 +8,13 @@ module Rails
require 'minitest/assertions'
Assertions = Minitest::Assertions
else
- require 'test/unit/assertions'
+ begin
+ require 'test/unit/assertions'
+ rescue LoadError
+ # work around for Rubinius not having a std std-lib
+ require 'rubysl-test-unit' if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
+ require 'test/unit/assertions'
+ end
Assertions = Test::Unit::Assertions
end

0 comments on commit b2734a6

Please sign in to comment.