Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

enhanced spec:ci to take a target on the command line, invoke like: S…

…PEC_TARGET=jruby rake spec:ci. removed deprecated #only and #except from spec_helper.
  • Loading branch information...
commit c7d623ee836363d0f3d443ba1c676ef0f86e34f7 1 parent c13a588
@brixen brixen authored
Showing with 3 additions and 13 deletions.
  1. +3 −1 Rakefile
  2. +0 −12 spec/spec_helper.rb
View
4 Rakefile
@@ -72,7 +72,9 @@ namespace :spec do
rescue
sh("svn co http://code.fallingsnow.net/svn/rubinius/branches/CI-specs")
end
- sh "bin/mspec CI-specs"
+ target = ENV['SPEC_TARGET'] || 'rbx'
+ system %(shotgun/rubinius -e 'puts "rbx build: \#{Rubinius::BUILDREV}"') if target == 'rbx'
+ sh "bin/mspec -t #{target} -f ci CI-specs"
end
spec_targets = %w(compiler core incompatible language library parser rubinius)
View
12 spec/spec_helper.rb
@@ -82,15 +82,3 @@ class Object
alias noncompliant compliant
alias extension compliant
end
-
-def only(*args)
- if Object.const_defined?(:RUBY_ENGINE) and args.include?(RUBY_ENGINE.to_sym)
- yield
- end
-end
-
-def except(*args)
- unless Object.const_defined?(:RUBY_ENGINE) and args.include?(RUBY_ENGINE.to_sym)
- yield
- end
-end
Please sign in to comment.
Something went wrong with that request. Please try again.