Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use RUBY_PLATFORM rather than RUBY_ENGINE to detect jruby.

RUBY_ENGINE is not defined when using MRI.  RUBY_PLATFORM is.
  • Loading branch information...
commit 96ca109bf7e0085b31b699584a9c35fb7e6fda21 1 parent ddaf0af
@myronmarston myronmarston authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  spec/rspec/core/formatters/base_formatter_spec.rb
View
2  spec/rspec/core/formatters/base_formatter_spec.rb
@@ -46,7 +46,7 @@
end
it "doesn't hang when file exists" do
- pending("This issue still exists on JRuby, but should be resolved shortly: https://github.com/rspec/rspec-core/issues/295", :if => RUBY_ENGINE == 'jruby')
+ pending("This issue still exists on JRuby, but should be resolved shortly: https://github.com/rspec/rspec-core/issues/295", :if => RUBY_PLATFORM == 'java')
exception = mock(:Exception, :backtrace => [ "#{__FILE__}:#{__LINE__}"])
example = mock(:Example, :file_path => __FILE__)
Please sign in to comment.
Something went wrong with that request. Please try again.