Skip to content

Commit

Permalink
A bit of cleanup for Rubinius spec stuff
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.codehaus.org/jruby/trunk/jruby@3803 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information
headius committed Jun 1, 2007
1 parent 1d5ab6c commit b904342
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 348 deletions.
339 changes: 0 additions & 339 deletions test/externals/rubinius/spec/core/options_spec.rb

This file was deleted.

22 changes: 13 additions & 9 deletions test/externals/rubinius/spec/rspec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,27 @@ def should_raise(exc)
rescue Object => ex
exc.should === ex
end

def should_include(*other)
should Spec::Matchers::Include.new(*other)
end
end

# Example courtesy of nicksieger, many thanks!
class Spec::Runner::Context
def before_context_eval
@context_eval_module.include ExceptionHelper

# case ENV['SPEC_TARGET']
# when /mri/
# require 'mri_target'
# @context_eval_module.include MRITarget
# when /jruby/
case ENV['SPEC_TARGET']
when /mri/
require 'mri_target'
@context_eval_module.include MRITarget
when /jruby/
require 'jruby_target'
@context_eval_module.include JRubyTarget
# else
# require 'rubinius_target'
# @context_eval_module.include RubiniusTarget
# end
else
require 'rubinius_target'
@context_eval_module.include RubiniusTarget
end
end
end

0 comments on commit b904342

Please sign in to comment.