Permalink
Browse files

Get the tests running on Rubinius 2

I'm having trouble getting simplecov to work with Rubinius's coverage stdlib,
so I'm skipping that for now.
  • Loading branch information...
1 parent 8b82ded commit 5a1436af5b744172c8e18d4d901623f7386768ac @chrisk committed Oct 12, 2013
Showing with 9 additions and 1 deletion.
  1. +8 −0 Gemfile
  2. +1 −1 test/helpers/start_simplecov.rb
View
@@ -1,2 +1,10 @@
source "https://rubygems.org"
gemspec
+
+# Rubinius 2.0 distributes the standard library as gems
+platform :rbx do
+ stdlibs = %w(benchmark cgi coverage delegate erb find logger net-http open-uri
+ optparse ostruct prettyprint singleton tempfile test-unit tmpdir yaml)
+ stdlibs.each { |lib| gem "rubysl-#{lib}", "~> 2.0" }
+ gem "psych", "~> 2.0"
+end
@@ -44,7 +44,7 @@ def html_report_requested?
end
def coverage_supported_by_this_ruby?
- RUBY_VERSION >= "1.9.0"
+ RUBY_VERSION >= "1.9.0" && RUBY_ENGINE != "rbx"
end
extend self

0 comments on commit 5a1436a

Please sign in to comment.