Skip to content

Commit

Permalink
rake specs works right on jruby and mri
Browse files Browse the repository at this point in the history
  • Loading branch information
wycats committed Sep 13, 2008
1 parent e774c76 commit 68da870
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,17 @@ Spec::Rake::SpecTask.new("specs") do |t|
t.spec_files = Dir["spec/**/*_spec.rb"].sort
end

desc "Run specs"
task :specs do
sh %{MRI_FFI=1 #{Gem.ruby} -S spec specs/*_spec.rb -fs --color}
if RUBY_PLATFORM == "java"
desc "Run specs"
task :specs do
sh %{#{Gem.ruby} -S spec #{Dir["specs/*_spec.rb"].join(" ")} -fs --color}
end
else
desc "Run specs"
task :specs do
ENV["MRI_FFI"] = "1"
sh %{#{Gem.ruby} -S spec #{Dir["specs/*_spec.rb"].join(" ")} -fs --color}
end
end

Rake::GemPackageTask.new(spec) do |pkg|
Expand Down

0 comments on commit 68da870

Please sign in to comment.