spec/spec_helper.rb in dchelimsky-rspec-1.1.11.4 vs spec/spec_helper.rb in dchelimsky-rspec-1.1.11.5

- old
+ new

@@ -10,9 +10,13 @@ require 'spec/story' spec_classes_path = File.expand_path("#{dir}/../spec/spec/spec_classes") require spec_classes_path unless $LOAD_PATH.include?(spec_classes_path) require File.dirname(__FILE__) + '/../lib/spec/expectations/differs/default' +def jruby? + ::RUBY_PLATFORM == 'java' +end + module Spec module Example class NonStandardError < Exception; end end